ex33.py modified