Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 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 ответ
0
you can just add an if i == x: break
to count for your desired number (which is x)