samples and code exercises from learnpythonthehardway