1# Python does not have a do-while loop. You can however simulate
2# it by using a while loop over True and breaking when a certain
3# condition is met.
4# Example:
5i = 1
6while True:
7 print(i)
8 i = i + 1
9 if(i > 3):
10 break
1#there is no do while loop in python but you san simulate it
2i = 1
3
4while True:
5 print(i)
6 i = i + 1
7 if(i > 5):
8 break
9