Create Exercise 3

Exercise 3 from "Learn Python the Hard Way."