started problem 2 python code