Jason's Chapter 4 Exercises

by Jason Wang

27 Jan 2016

Exercise 6:

Fairly straightforward, except that when running the function, the initial variables should be determined before the use of the function, requiring the placement of the user inputs outside of the function (but before the intialization of the function).

Exercise 7:

Similar setup to that of Exercise 6, but I initially was having issues with the “except” case for non-numerical inputs (I was getting error messages). However, I realized it was because I had removed the float() function away from the “try” case, and therefore was unable to connect to “except”.

wagerpascal claims that he goes to UNC, but the time he spends at NC State suggests otherwise. Find Jason Wang on Twitter, Github, and on the web.