Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created August 21, 2012 12:48
Show Gist options
  • Save Ikke/3415099 to your computer and use it in GitHub Desktop.
Save Ikke/3415099 to your computer and use it in GitHub Desktop.
>>> def test():
... return (1, 2, 3)
...
>>> a = test()
>>> print(a)
(1, 2, 3)
>>> a, b, c = test()
>>> print(a)
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment