Learn Python

 

ListTricks

Page history last edited by peter 1 yr ago


 

unzip

The opposite of zip(lists) is zip(*list_of_tuples) details:

 

zipped = zip(list(1, 2, 3), list(21, 22, 23))

(s1, s2) = zip(*zipped)

Comments (0)

You don't have permission to comment on this page.