CH1: Exercise 07 in python.