Skip to content

Instantly share code, notes, and snippets.

@edenau
Created February 1, 2020 19:51
Show Gist options
  • 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