Name
The while Statement
Synopsis
whiletest
:suite
[else:suite
]
General loops. Keeps running first suite while test at top is true.
Runs else
suite if loop exits without hitting a
break
statement.
Get Python Pocket Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.