[Tutor] Iterate over multiple objects
W W
srilyk at gmail.com
Wed Oct 29 12:40:56 CET 2008
On Wed, Oct 29, 2008 at 5:38 AM, A.T.Hofkamp <a.t.hofkamp at tue.nl> wrote:
> <snip>
> With the zip() function you can merge two sequences into one:
>
> for x, y in zip(string1, string2):
> print x, y
>
Ah! I *knew* there was a way - I just couldn't remember what it was.
Thanks!
-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081029/4005ebd8/attachment.htm>
More information about the Tutor
mailing list