New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Could anyone explain me the output? i = 0 while 1==1: print(i) i = i +1 print("Finished") Output: 0 Finished 1 Fi
1 Answer
0
you can just add an if i == x: break
to count for your desired number (which is x)