ex6.py