Problem 2 Python