exam 3 of pythonchallenge.