Python Web -L04 (While Loop)

Run Settings
LanguagePython
Language Version
Run Command
x = 25 while x > 20 or print("x is larger than 20"): x -= 1 # In this case, same as break else: print("when to run this line ?") x = 25 while x > 20: print("x is larger than 20") if x == 23: break x -= 1 # In this case, same as break else: print("when to run this line ?") x = 25 while x > 20: if x == 23: break x -= 1 if x == 24: continue print("x is larger than 20, now x is", x) else: print("when to run this line ?") x = 21 while x > 20: if x == 23: break x -= 1 if x == 24: continue print("x is larger than 20, now x is", x) else: print("normal exit or less than 20")
Editor Settings
Theme
Key bindings
Full width
Lines