elis aeris wrote:

> for x in xrange (20, 0):
>     print x

> but what if I need the for loop to go from a big number to a small number?

Just give a step value:
for x in xrange(20, 0, -1):
   print x

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to