Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518d8da commit 17fe364Copy full SHA for 17fe364
1 file changed
Doc/library/functions.rst
@@ -1161,9 +1161,9 @@ are always available. They are listed here in alphabetical order.
1161
>>> x = [1, 2, 3]
1162
>>> y = [4, 5, 6]
1163
>>> zipped = zip(x, y)
1164
- >>> zipped
+ >>> list(zipped)
1165
[(1, 4), (2, 5), (3, 6)]
1166
- >>> x2, y2 = zip(*zipped)
+ >>> x2, y2 = zip(*zip(x, y))
1167
>>> x == x2, y == y2
1168
True
1169
0 commit comments