how do you make a loop run in reverse?

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Mar 27 01:18:13 CET 2013


On 26/03/2013 23:59, rahulreddy24 at hotmail.com wrote:
> So i have a set of for loops that create this :
>

snipped the art

>
> but i want to nest all the loops under one BIG loop that'll run in reverse to make this:
>

snipped the art

>
> Is this possible?
>

Yes read http://docs.python.org/3/library/stdtypes.html#range and 
http://docs.python.org/3/library/functions.html#reversed

-- 
If you're using GoogleCrap™ please read this 
http://wiki.python.org/moin/GoogleGroupsPython.

Mark Lawrence




More information about the Python-list mailing list