problem7.py