Solve problems 35,37 using Python.