Mastering While Loops
Katy Gibson
11 Lessons
26m
basics
python
Master indefinite iteration using the Python “while” loop. You’ll be able to construct basic and complex while loops, interrupt loop execution with break and continue, use the else clause with a while loop, and deal with infinite loops.
The editor used in this course is Thonny: The Beginner-Friendly Python Editor. Checkout our article about Thonny. It covers the setup and usage as well as best practises.
While Loops
11 Lessons 26m
2. Basic While Loop Structure (03:07)
3. While Loops and Lists (02:59)
4. Interrupting Loop Iteration (00:53)
5. Using Break and Continue (04:08)
6. The While Loop Else Clause (01:50)
7. Infinite Loops (02:16)
9. Nested While Loops (04:22)
10. One-Line While Loops (02:17)
About Katy Gibson
Katy is a full-stack web developer with experience in high school science education. She enjoys teaching and learning and is just really excited to be here.
» More about Katy




Bill on March 13, 2019
Katy, Really well done, made while loops readily understandable. Thank you.
I changed the fizz, baz, buzz to one, two, three, just so I could more readily identify where I was and what was going on. Probably more of my dyslexia than anything else.