I am trying to learn how to \"zip\" lists. To this end, I have a program, where at a particular point, I do the following:
x1, x2, x3 = stuff.calculations(wi
I don't think zip returns a list. zip returns a generator. You have got to do list(zip(a, b)) to get a list of tuples.
zip
list(zip(a, b))
x = [1, 2, 3] y = [4, 5, 6] zipped = zip(x, y) list(zipped)