Skip to content

Instantly share code, notes, and snippets.

@zelark
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zelark/9687623 to your computer and use it in GitHub Desktop.
Save zelark/9687623 to your computer and use it in GitHub Desktop.
# Try it out. It works!
x = [[1,2], [3,4], [5,6]]
x = [x for x in x for x in x]
# x = [1, 2, 3, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment