Skip to content

Instantly share code, notes, and snippets.

@zgohr
Created August 10, 2012 20:31
Show Gist options
  • Save zgohr/3317634 to your computer and use it in GitHub Desktop.
Save zgohr/3317634 to your computer and use it in GitHub Desktop.
returning tuples
def return_it():
return ('first', 'second',)
one, two = return_it()
print one
# first
print two
# second
three = return_it()
print three
# ('first', 'second')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment