Loop in a loop?

2008-01-17 Thread Sacred Heart
Hi, I'm new to Python and have come across a problem I don't know how to solve, enter com.lang.python :) I'm writing some small apps to learn the language, and I like it a lot so far. My problem I've stumbled upon is that I don't know how to do what I want. I want to do a loop in a loop. I think.

Re: Loop in a loop?

2008-01-17 Thread Sacred Heart
On Jan 17, 1:35 pm, [EMAIL PROTECTED] wrote: > for i in zip(array1, array2): > print i > > Although I take it you meant four d, the issue with this method is > that once you hit the end of one array the rest of the other one is > ignored. Yes, small typo there. Okey, so if my array1 is has 4

Re: Python Tutorial.

2008-01-18 Thread Sacred Heart
On Jan 17, 11:30 pm, Rizwan <[EMAIL PROTECTED]> wrote: > Hiya, > > I found one good website for python tutorial. just thought to share > with community. > > Hope you all also like it.. > > http://python.objectis.net > > -MR Thanks, looks like a nice collection of links. I've bookmarked the page.

Re: Loop in a loop?

2008-01-18 Thread Sacred Heart
On Jan 17, 7:39 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > Sacred Heart <[EMAIL PROTECTED]> writes: > > array1 = ['one','two','three','four'] > > array2 = ['a','b','c','d'] > >