Recent Question/Assignment

Have to do it in python