0

How does this if inside while works explain me?

15th Jul 2019, 9:34 AM
Madhuri Reddy
Madhuri Reddy - avatar
6 ответов
+ 2
Madhuri Reddy Do you have any example code
15th Jul 2019, 10:04 AM
deeyae
deeyae - avatar
+ 1
Can you elaborate your question
15th Jul 2019, 9:41 AM
deeyae
deeyae - avatar
+ 1
Tq so much nw I got
15th Jul 2019, 10:31 AM
Madhuri Reddy
Madhuri Reddy - avatar
0
I didn't understand how break statement works inside the while loop?,can help me out
15th Jul 2019, 9:57 AM
Madhuri Reddy
Madhuri Reddy - avatar
0
i = 0 while 1==1: print(i) i = i + 1 if i >= 5: print("Breaking") break Print("finished")
15th Jul 2019, 10:09 AM
Madhuri Reddy
Madhuri Reddy - avatar