my python assignment 3.3

This is the python assignment titled 3.3 for Coursera