Code examples from introduction to programming with Python