Introduction to Python 3

Mastering While Loops

Katy Gibson

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.

About Katy Gibson

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

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

« Browse All Courses