Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@edenau
Created February 1, 2020 19:51
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 edenau/8834c6a112d03a0fcce985c4fad47b17 to your computer and use it in GitHub Desktop.
Save edenau/8834c6a112d03a0fcce985c4fad47b17 to your computer and use it in GitHub Desktop.
def foo(*args):
print(type(args))
for arg in args:
print(arg)
foo(1, 2, 'end')
# <class 'tuple'>
# 1
# 2
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment