while loop



examples/loops/while.py
import random

total = 0
while total <= 100:
    print(total)
    total += random.randrange(20)

print("done")

0
10
22
29
45
54
66
71
77
82
93
done