Overview
In the previous section, you used conditional statements in the form of if-else
and elif
statements to dictate which parts of the code must run based on conditions that evaluate to either True
or False
.
Conditionally running certain parts of your code is only one way of controlling the flow of your program. Often times, you'll find that you need to run the same block of code multiple times. This concept is known as iterating (or looping).
In this section, you will use:
for
Loopswhile
Loopsbreak
andcontinue
keywords
to control how many times you need to iterate through a sequence of code.
See you there!
Feedback Summary
4.8
8 students
5
75%
4
25%
3
0%
2
0%
1
0%
Written Reviews
There are no written reviews yet.