In this lesson, students learn to use while loops in their Python programs. While loops allow code to be executed repeatedly based on a condition. They are also reminded of the possibility of creating an infinite loop, which occurs if the exit condition of the while loop is never met, causing the code inside the while loop to repeat continuously.
Students will be able to:
In this lesson, students will explore how to use for loops in their Python programs. They will be reminded how to use i
as a variable in their programs as well as how to control the values of i
by altering the starting, ending, and interval values.
Students will be able to:
i
as a counteri
in a for loopIn this lesson, students learn about break and continue statements. A break
statement is used to immediately terminates a loop. A continue
statement is used to skip out of future commands inside a loop and return back to the top of the loop. These statements can be used with for or while loops.
Students will be able to:
In this lesson, students will use control structures within control structures, which are referred to as nested control structures.
Students will be able to:
In this lesson, students review content with a 15 question Unit Quiz.
Students will be able to: