Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

While Loops: Conclusion & Lessons Learned

This lesson is a recap of the Mastering While Loops course. You learned about:

  • The Basics of the while-Loop
  • Interruption of Loop Iterations
  • The else-Clause
  • Infinite while-Loops (and how to break out of them)
  • Nested while-Loops
  • One-Line while-Loops

Take the Quiz: Test your knowledge with our interactive “Python while Loops: Repeating Tasks Conditionally” quiz. You’ll receive a score upon completion to help you track your learning progress:


Interactive Quiz

Python while Loops: Repeating Tasks Conditionally

In this quiz, you'll test your understanding of Python's while loop. This loop allows you to execute a block of code repeatedly as long as a given condition remains true. Understanding how to use while loops effectively is a crucial skill for any Python developer.

Avatar image for Abdullah Dev

Abdullah Dev on Feb. 27, 2020

Great work! Well done! This is so easy to follow and easy to understand! Amazing!!!

Avatar image for Levi

Levi on March 13, 2020

Learned a thing or two, especially those 1 line while loops. Thanks!

Avatar image for dnlock

dnlock on May 7, 2020

Fantastic tutorial, Katy! Thank you.

Avatar image for sweir12525

sweir12525 on July 18, 2020

Excellent. You did not forget that this is an introductory course and not for meant for intermediate programmers.

Avatar image for Ben Nduwuba

Ben Nduwuba on July 19, 2020

Great Tutorial ! Thanks !

Avatar image for Ghani

Ghani on Oct. 15, 2020

Excellent tutorial Katy; thanks so much!

Avatar image for Gregory

Gregory on Jan. 5, 2021

Great Job! I really enjoyed this series. You maintained a calm, but steady pace and didn’t overload us beginners. Also, was glad to see someone besides myself using Thonny. It’s a great tool for those of us just starting out.

Avatar image for kegger

kegger on May 19, 2021

Cleared up confusion I has about break and continue. Thanks much!

Avatar image for aniketbarphe

aniketbarphe on Sept. 26, 2021

Thank You for great content!

Avatar image for rwelk

rwelk on Feb. 12, 2024

Being fairly new to learning Python I found the use of Thonny in these videos very helpful to me. Great segment. Thanks.

Become a Member to join the conversation.