Re: Tuple of coordinates

2008-06-04 Thread [EMAIL PROTECTED]
On 29 mayo, 17:45, Gary Herron <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > 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, ste

Re: Tuple of coordinates

2008-05-29 Thread Gary Herron
[EMAIL PROTECTED] wrote: 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,j

Re: Tuple of coordinates

2008-05-29 Thread Benjamin Kaplan
On Thu, May 29, 2008 at 8:16 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > 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): > f

Re: Tuple of coordinates

2008-05-29 Thread alex23
On May 29, 10:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 (b

Re: Tuple of coordinates

2008-05-29 Thread cokofreedom
a = 1, 2 b = 3, 4, 5 c = 6, 7, 8, 9 coord = list() for i, j, k in zip(a, b, c): coord.append((i, j, k)) print coord -- http://mail.python.org/mailman/listinfo/python-list

Tuple of coordinates

2008-05-29 Thread [EMAIL PROTECTED]
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)) Ca