For your health


#1


For your health

here is the instruction:
Make the loop print the numbers from 0 to 19 instead of 0 to 9.

print "Counting..."

for i in range(10,20):
    print i


so i print 10 to 19
and the wrong message showed

I t looks like your code does not print 20.
so i changed the code below:


print "Counting..."

for i in range(10,21):
    print i

the message I get :

Make sure you stop at 19!

What should I do?


#2

this error message:

I t looks like your code does not print 20.

means you don't print 20 items. You should print from 0 till 20. your start value (10) is wrong


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.