Loops Lab
In the Math in Python lab, we explored the if-elif-else construct, which enabled our programs to make decisions based on conditions. However, the same set of code could be executed only once. In this section, we’ll explore how to make the same set of instructions run multiple times as long as a condition is true – in some cases, forever.
Time
1 hour 30 minutes
Difficulty
Beginner
Share
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Overview
In the Math in Python lab, we explored the if-elif-else construct, which enabled our programs to make decisions based on conditions. However, the same set of code could be executed only once. In this section, we’ll explore how to make the same set of instructions run multiple times as long as a condition is true – in some cases, forever.
Similar Content