how do you make a loop run in reverse?

Dave Angel davea at davea.name
Tue Mar 26 20:08:08 EDT 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