Python: ch12.py