exercise3.py