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

https://code.sololearn.com/c8CHGjpNgJfk/?ref=app

3rd Dec 2018, 2:19 PM
K.Shyam Charan
K.Shyam Charan - avatar
9 odpowiedzi
+ 2
guess it's indendation problem try this i=0 while i<11: i=i+1 print(i)
3rd Dec 2018, 2:35 PM
Rishi Anand
Rishi Anand - avatar
+ 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
3rd Dec 2018, 2:32 PM
Mensch
Mensch - avatar
0
Lexus Collins please give me a sample code
3rd Dec 2018, 2:50 PM
K.Shyam Charan
K.Shyam Charan - avatar
0
Rishi Anand it didn't work
3rd Dec 2018, 2:52 PM
K.Shyam Charan
K.Shyam Charan - avatar
0
Tyrant it didn't work
3rd Dec 2018, 2:52 PM
K.Shyam Charan
K.Shyam Charan - avatar
0
Rishi Anand thanks a lot
3rd Dec 2018, 3:06 PM
K.Shyam Charan
K.Shyam Charan - avatar