#there is no do while loop in python but you san simulate it i = 1 while True: print(i) i = i + 1 if(i > 5): break