Update ex17.py

Finished entering all the text of the exercise