The solution to my homework for the ladies python class