what's wrong here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
3rd Jan 2018, 12:08 PM
Костя Супчик
Костя Супчик - avatar
2 Answers
+ 7
The execution of while loop never stops because the condition you passed always returns true..You may write i+=1to fix it
3rd Jan 2018, 12:15 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
0
first you must remove the "global x", then the program will execute but it has infinity loop
31st Jul 2018, 6:52 AM
Sousou
Sousou - avatar