Exercises from Learn python the hard way