Tuple of coordinates

victor.herasme at gmail.com victor.herasme at gmail.com
Thu May 29 08:16:07 EDT 2008


Hi,

i am using a software which uses python as its scripting language. I
want to generate a list of coordinates more or less this way:

for i in (beg, end, step):
     for j in (beg, end, step):
          for k in (beg, end, step):
.........

Coords =  ((i1,j1,k1), (i2,j2,k2), ...,(in,jn.kn))


Can anyone give me some advice on how to achieve this ? I got a little
idea, but still need to keep working til i get it. Thanks in advance,


Victor



More information about the Python-list mailing list