[Tutor] xrange

elis aeris hunter92383 at gmail.com
Tue Mar 18 22:04:15 CET 2008


x = 0
y = 0
for x in xrange (20, 0):
    print x



this doesn't work because it goes from a big number to a small number, which
does nothing



but what if I need the for loop to go from a big number to a small number?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080318/f0cb7809/attachment.htm 


More information about the Tutor mailing list