5 tips to speed up your Python code

Posted by Bob on Tue 21 February 2017 in Best practices • Tagged with performance, data structures, pythonic, generators, map, builtin, algorithms, regex, patterns

In this post I will give you 5 tips to speed up your code.


Continue reading

How to Order Dict Output in Python

Posted by Julian on Thu 16 February 2017 in Tips • Tagged with python, tips, tricks, code, pybites, dicts, data structures

Learn how to order the output of a Python Dict


Continue reading

A great book that makes algorithms accessible

Posted by Bob on Tue 03 January 2017 in Books • Tagged with algorithms, data structures, performance, collections

I finished reading Grokking Algorithms, it's a very accessible resource for learning algorithms / data structures, highly recommended.


Continue reading

Read the stdlib: deque

Posted by Bob on Wed 21 December 2016 in Data • Tagged with collections, data structures, performance, stdlib, deque

Use collections.deque to rotate letters in string (or elements in list). It has a native method which performs faster too.


Continue reading