Enhanced Dictionaries in Python [video]

In this episode, we take a look at python’s defaultdict function and Counter class in the collections library. 00:00 – Introduction 00:22 – Creating events 0… Read more

Similar

The fastest way to flatten a list in Python

In my latest book, Fast Python, I bust a lot of speed myths in Python. Some of the most basic advice people give about optimizing Python code is wrong, likely because no one ever bothered to test it. In this book, I go back to the basics and verify (or bu... (more…)

Read more »