Possible Duplicate:
how can I iterate through two lists in parallel in Python?
I have 2 lists:
l = ["a", "b", "c"]
m = ["x", "y", "z"]
And I want to iterate throught both at the same time, something like this:
for e, f in l, m:
print e, f
Must show:
a x
b y
c z
The thing is that is totally illegal. How can I do something like this? (In a Pythonic way)