Skip to content

Instantly share code, notes, and snippets.

@eyaltrabelsi
Last active June 21, 2019 07:09
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 eyaltrabelsi/518d67444ca8458c120bea08032f5d90 to your computer and use it in GitHub Desktop.
Save eyaltrabelsi/518d67444ca8458c120bea08032f5d90 to your computer and use it in GitHub Desktop.
Pyhon-Tricks Unpacking from iterables
# One can unpack all iterables (tuples, list etc)
>>> a, b, c = 1, 2, 3
>>> a, b, c
(1, 2, 3)
>>> a, b, c = [1, 2, 3]
>>> a, b, c
(1, 2, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment