Lingjie's Chapter 5 Loop Exercises

by Lingjie Wang

03 Feb 2016

This is my loop exercise 1:

This is my loop exercise 2:

Reflection: I’ve learned two things from these exercises. One is that the command ‘print’ can use commas as ‘+’ only when there are no no parenthese, and that the data type everything input is string, so for the numbers we still need to convert them into integer or float types, or there’ll be some problems when doing computation.

Lingjie Wang is a first year master student studying Statistics and Operations Research Find Lingjie Wang on Twitter, Github, and on the web.