how do you make a loop run in reverse?

Dave Angel davea at davea.name
Wed Mar 27 01:08:08 CET 2013


On 03/26/2013 07:59 PM, rahulreddy24 at hotmail.com wrote:
> So i have a set of for loops that create this :
>
> ***************************************
> ***   ***   ***   ***   ***   ***   ***
> ***   ***   ***   ***   ***   ***   ***
>     ***   ***   ***   ***   ***   ***   ***
>     ***   ***   ***   ***   ***   ***   ***
> ***************************************
>
>                   *
>                  ***
>                 *****
>                *******
>               *********
>
> but i want to nest all the loops under one BIG loop that'll run in reverse to make this:
>
> ***************************************
> ***   ***   ***   ***   ***   ***   ***
> ***   ***   ***   ***   ***   ***   ***
>     ***   ***   ***   ***   ***   ***   ***
>     ***   ***   ***   ***   ***   ***   ***
> ***************************************
>
>                   *
>                  ***
>                 *****
>                *******
>               *********
>                *******
>                 *****
>                  ***
>                   *
> ***************************************
>     ***   ***   ***   ***   ***   ***   ***
>     ***   ***   ***   ***   ***   ***   ***
> ***   ***   ***   ***   ***   ***   ***
> ***   ***   ***   ***   ***   ***   ***
> ***************************************
>
> Is this possible?
>

tes

-- 
DaveA



More information about the Python-list mailing list