Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 3.9.0rc1 (default, Aug 12 2020, 00:00:00)
- [GCC 10.2.1 20200804 (Red Hat 10.2.1-2)] on linux
- Type "help", "copyright", "credits" or "license()" for more information.
- >>> l1 = list(zip(*[('a', 1), ('b', 2), ('c', 3), ('d', 4)]))
- >>> l1
- [('a', 'b', 'c', 'd'), (1, 2, 3, 4)]
- >>> l2 = list(zip(*l1))
- >>> l2
- [('a', 1), ('b', 2), ('c', 3), ('d', 4)]
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement