ex8.py