Update problem4.py