exercise 17.py