0

num=1 while num <=10: print (num) num+=1 print'done'

can't figure out the error

29th Oct 2016, 10:15 AM
sheriff agboola
sheriff agboola - avatar
4 odpowiedzi
+ 2
seems you forget to indent the body of the while loop
29th Oct 2016, 10:39 AM
Amarie
0
oh thanks
29th Oct 2016, 11:14 AM
sheriff agboola
sheriff agboola - avatar
0
Probably want to print number after you add 1 to it.
31st Oct 2016, 4:36 AM
Avery
Avery - avatar
0
indent the contents of while first
1st Nov 2016, 4:28 PM
shilpa
shilpa - avatar