0

how this program run

i = 0 while True: i = i +1 if i == 2: print("Skipping 2") continue if i == 5: print("Breaking") break print(i) print("Finished") ------------------------------------- my query is : the while loop will allow to go when the statement is correct but here the true is given so what is standing for true

27th Feb 2020, 5:49 PM
Kusum Paliwal
Kusum Paliwal - avatar
2 Respuestas
0
it'll never end, until it break.
27th Feb 2020, 5:54 PM
Taste
Taste - avatar
0
Please tag Python for context clarity 👍
27th Feb 2020, 9:44 PM
Ipang