Few Python Tips
1) Iterate with enumerate instead or range(len(x))
2) Use list comprehension instead of raw for loops
3) Sort complex iterables with sorted()
4) Save memory with Generators
5) Define default values in Dictionaries with .get() and .setdefault()
6) Count hashable objects with collections.Counter
7) Format strings with f-Strings (Python 3.6+)
8) Concatenate strings with .join()
9) Merge dictionaries with {**d1, **d2} (Python 3.5+)