| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/thomasWeise/programmingWithPythonCode/main/syntax/while_loop.py | [Back] [Original] |
"""The syntax of a while-loop in Python."""
while booleanExpression:
loop body statement 1 # The loop body is executed as long as the
loop body statement 2 # booleanExpression evaluates to True.
# ...
normal statement 1 # After booleanExpression became False, the while
normal statement 2 # loop ends and the code after it is executed.
# ...
| Web Proxy Viewer | New URL | Original Page |