Problem 6, Python
Fixed typo
Problem 7, Python