Chapter2ex2.4.2.py