"""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. # ...