0
How is this supposed to print 1 to 100 using while loop? Why is this getting infite 1's?
a=1 while a<100: print(a) a+=1
8 odpowiedzi
+ 3
a+=1 should be indented too
+ 1
This code is working perfectly in my PC. It is printing numbers from 1 to 99.
0
can you plz write it ? I don't get it
0
I'm using python (latest) and pycharm btw. Someone plz fix this 😭
0
a=1
while a<100:
print(a)
a+=1
0
um.. what did you change? :/
0
nothing Md Mursalin i just add tab to the a+=1 as I have told you earlier
0
omg it worked ... thanks a lot *-*