Re: [Tutor] Iterating two one dimensional lists to create a multidemsional array

2008-10-11 Thread W W
On Fri, Oct 10, 2008 at 10:59 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 10:45 PM, S Potter <[EMAIL PROTECTED]> wrote: > >> poem ={ ['roses','are red'], >> ['violets','are blue'], >> ['sugar','are sweet'] >> ['so','are you'] } An

Re: [Tutor] Iterating two one dimensional lists to create a multidemsional array

2008-10-10 Thread Kent Johnson
On Fri, Oct 10, 2008 at 10:45 PM, S Potter <[EMAIL PROTECTED]> wrote: > OK I'm still new to the python list / array deal. I'm having problems with > something very simple that I could accomplish in C++ but > for some reason I'm not grasping it python. > > Here is my example psuedo code: > > I have

[Tutor] Iterating two one dimensional lists to create a multidemsional array

2008-10-10 Thread S Potter
OK I'm still new to the python list / array deal. I'm having problems with something very simple that I could accomplish in C++ but for some reason I'm not grasping it python. Here is my example psuedo code: I have two lists: items = ['roses','violets','sugar','so'] and attributes = ['red','b