Midterm Modulized

Midterm Modulized

For this assignment I took my midterm and rewrote it so that all of my code was inside a module. I also refactored my code so that I went from 52 lines of code to 35 lines of code. Here’s my new and improved code:

I can now run my code like this:

Screen Shot 2015-04-07 at 9.38.32 PM