hard way to learn python ex26-35