Solutions to Python's assignment #1