problem 10 and 11 python