<div>Hi,</div>
<div>I`m a python newbie and&nbsp;could use&nbsp;some help.</div>
<div>&nbsp;</div>
<div>I often do a loop over&nbsp;arbitrary number of&nbsp;sequences. I do it like this:</div>
<div>&nbsp;</div>
<div>for elem1 in seq1:</div>
<div>&nbsp;&nbsp;&nbsp; for elem2 in seq2:</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do whatever seq1,seq2</div>
<div>&nbsp;</div>
<div>this isn`t nice I think. Is there some way I can say myiterator=geniousfunction(seq1,seq2,seq3)</div>
<div>&nbsp;</div>
<div>and then myiterator.next()&nbsp; and have it return the corresponding elemnts from all sequences like if</div>
<div>&nbsp;</div>
<div>seq1 = ['a','b']</div>
<div>seq2 = [1,2]</div>
<div>&nbsp;</div>
<div>I could get</div>
<div>&nbsp;</div>
<div>a 1</div>
<div>a 2</div>
<div>b 1</div>
<div>b 2</div>
<div>&nbsp;</div>
<div>also, how do you loop over all the elements that can be returned by myiterator?</div>