I'm a bit of a Python beginner so I apologise if this is a very basic question.
I have two lists of data which are obtained from:
with filein as f:
reader=csv.reader(f)
xs, ys = zip(*reader)
I would like to create a loop which would take the first item in "xs" and the first item in "ys" and print them out. I would then like to loop back and repeat for the second item in both lists and so forth.
I had thought something like:
for x in xs and y in ys:
Or
for x in xs:
for y in ys:
But neither of these seems to give the desired result.