0

From python

for i in range(10): if i == 999: break else: print("Unbroken 1") for i in range(10): if i == 5: break else: print("Unbroken 2")

3rd Apr 2019, 10:19 AM
Sanjay Kumar
Sanjay Kumar - avatar
4 Answers
+ 8
In the first loop, break won't make any effect as value of i will never be 999. In the second loop, on the 6th iteration, value of i will become 5 and loop will be broken.
3rd Apr 2019, 10:28 AM
Letsintegreat
Letsintegreat - avatar
+ 7
Could you please reframe the question pointing what exactly the question is? https://www.sololearn.com/discuss/1316935/?ref=app
3rd Apr 2019, 10:20 AM
Letsintegreat
Letsintegreat - avatar
+ 1
Yes you are right Zlytherin.. 😎
27th May 2019, 2:56 AM
Sanjay Kumar
Sanjay Kumar - avatar
0
Is break statement make any cause and which part will be going to execute.
3rd Apr 2019, 10:24 AM
Sanjay Kumar
Sanjay Kumar - avatar