Anyone can Explain This, what shoud we the output and how | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Anyone can Explain This, what shoud we the output and how

i = 5 while True: print(i) i = i - 1 if i <= 2: break

8th Jan 2022, 5:58 AM
Damodar Dhakad
Damodar Dhakad - avatar
1 Answer
0
With break is the loop left. You can see that here. Play with this code and see what happend. https://code.sololearn.com/czS3B57S2ycx/?ref=app
8th Jan 2022, 7:20 AM
JaScript
JaScript - avatar