Loop backwards using indices

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.


For discussion of why range works the way it does, see Why are slice and range upper-bound exclusive?.

← Назад к списку