0
I tried this code but it didn't work the way I want...please check it..i want the the code to count numbers but it just shows 11
9 Respuestas
+ 2
guess it's indendation problem
try this
i=0
while i<11:
i=i+1
print(i)
+ 1
What you did in the loop was add 1 to the num which resulted in 11.
Try this..
num=0
while num<11:
print(num)
num=num+1
That should create numbers from 0-10
0
Lexus Collins please give me a sample code
0
Rishi Anand it didn't work
0
Tyrant it didn't work
0
Rishi Anand thanks a lot