Program Flow: Loops

Doing the Same Thing Over + Over Again

Loops #

Loops are another fundamental building block that allow us to run a procedure repeatedly. In this lesson, we will take a look at while and for loops.

while loops #

To run a segment of code while a certain condition remains true, use a while loop.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy