#7 While loop & controller

Run Settings
LanguagePython
Language Version
Run Command
# for repeatnig time is determined # while() - repeating time is unknown #case 1 : controller inside while loop x= 1 while (True): print(x) x=x+1 #add a controller (continue / break) or it will loop indefinitely if (x==3): print(x) continue x=x+1 if (x==7): break else: print("loop exit normally") #case 2: controller at while condition expression while (x < 10): print("second while loop",x) else: print("second loop exit normally")
Editor Settings
Theme
Key bindings
Full width
Lines