Code for the second video in the Writing Idiomatic Python Video Series