how do you make a loop run in reverse?

rahulreddy24 at hotmail.com rahulreddy24 at hotmail.com
Tue Mar 26 19:59:39 EDT 2013


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?



More information about the Python-list mailing list