while
evaluates
to true?
while num < 10: num = num + 1
the value of num increases by 1
10
10
while
loop when the boolean expression after the keyword
while
becomes false?
the loop stops
num = 5 while num > 0: print(num)
it will never stop
an infinite loop
Control C
while
loop with the following header ever stop?
while True:
no
data validation
a compound statement