code ex3.py