Lecture 2 - Loops
Lecture 2 - Loops
Loop
2. While +
Assume the input is all positive and negative, we can use “While True”, it initiates a an
infinite loop, but we need a way to get out of this loop
While True is a common paradigm in Python, when we want to do something again and
again
5. Iteration with list
6. len
7. Dictionaries +
The main does not need to know the print-columns function has changed
9.2 Horizontal
9.3 Square