Pieces of code I'm writing while reading the book "How to Think Like a Computer Scientist: Python version"