Hannah's Chapter 5 Exercises

by Hannah Wang

02 Feb 2016

Exercise 1:

Exercise 2:

The exercises for this week were relatively straightforward, since the readings did a pretty good job of explaining definite loops using “for”. The only tricky parts for me were setting the original “count”, “total”, “largest”, and “smallest” values outside the loop, the putting the try/except inside the loop, so that the program would keep asking for input even after a bad input.

Hannah Wang is a second semester MSIS student at SILS. Find Hannah Wang on Twitter, Github, and on the web.