Bits of code for teaching python