Problem 9, Python
Problem 10, Python