Python while Keyword
Definition and Usage
The while
keyword is used to create a
while
loop.
A while loop will continue until the statement is false.
Related Pages
Use the for
keyword to create a for loop.
Use the break
keyword to break out of a loop.
Read more about while loops in our Python While Loops Tutorial.