for y in range (0,iNumItems)--> not in order?

Fredrik Lundh fredrik at pythonware.com
Thu Aug 14 17:47:23 CEST 2008


korean_dave wrote:

> Still the same output...
 >
> Here's the actual code...
> 
>     for x in range(0,2):
>         for y in range(0,27):
>             for z in range(0,15):
>                 print(str(x) + " " + str(y) + " " + str(z))

umm.  that's even less related to your original output than your earlier 
code sample.

$ python actual_code.py
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
...
1 26 10
1 26 11
1 26 12
1 26 13
1 26 14

please do a little more debugging on your own machine before claiming 
that fundamental python features that's been around for ages suddenly 
won't work.

</F>




More information about the Python-list mailing list