Commit 17fe364b authored by Georg Brandl's avatar Georg Brandl

#4562: fix zip() examples.

parent 518d8da0
......@@ -1161,9 +1161,9 @@ are always available. They are listed here in alphabetical order.
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
>>> list(zipped)
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zipped)
>>> x2, y2 = zip(*zip(x, y))
>>> x == x2, y == y2
True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment