Back
I am trying to loop from 100 to 0. How do I do this in Python?
for i in range (100,0) doesn't work.
You can use the below-mentioned code:
for i in reversed(xrange(101)):print i,
for i in reversed(xrange(101)):
print i,
31k questions
32.8k answers
501 comments
693 users