Skip to content

Instantly share code, notes, and snippets.

@michaelconnor00
Created March 11, 2016 16:12
Show Gist options
  • Save michaelconnor00/684f6af8f7047cd85a72 to your computer and use it in GitHub Desktop.
Save michaelconnor00/684f6af8f7047cd85a72 to your computer and use it in GitHub Desktop.
>>> a, b, c = 1, 2, 3
>>> a, b, c
(1, 2, 3)
>>> a, b, c = [1, 2, 3]
>>> a, b, c
(1, 2, 3)
>>> a, b, c = (2 * i + 1 for i in range(3))
>>> a, b, c
(1, 3, 5)
>>> a, (b, c), d = [1, (2, 3), 4]
>>> a
1
>>> b
2
>>> c
3
>>> d
4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment