Chapter2ex2.4.3.py