Skip to content

Instantly share code, notes, and snippets.

@Linus-Albertus
Last active May 26, 2019 10:58
Show Gist options
  • Save Linus-Albertus/96c763fb062b4393bef61bc1a747d092 to your computer and use it in GitHub Desktop.
Save Linus-Albertus/96c763fb062b4393bef61bc1a747d092 to your computer and use it in GitHub Desktop.
[transpose array] Transpose an 2d array #array #python
original_array = [['a',1], ['b',2], ['c',3]]
transposed_array = zip(*original_array)
list(transposed_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment