Job category:
Software Engineering

Controlling Python Loops with While, Break, and Continue

When you don't know in advance how many repetitions you need, a for loop isn't enough. You'll learn to write while loops driven by conditions, steer them precisely with break and continue, and build robust validation loops that examine stored candidate data until an acceptable value is found.
Python
4 lessons
16 practices
1 hour
Badge for General Programming and Algorithms,

Course details

Controlling Repetition with While Loops
Count the Workout Laps
Loop Until the Debt Clears
Count the Doublings Past a Limit
Stop the Endless Tank Drain

Turn screen time into skills time

Practice anytime, anywhere with our mobile app.
Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal