solve the python challenge 5.