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)


Page Information

  • 7 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts