Exercise of learn python the hard way