demo_while.py:
i = 1 while i < 6: print(i) i += 1
➜ begtut>python demo_while.py
1
2
3
4
5