Skip to content

Instantly share code, notes, and snippets.

@mingrammer
Last active October 29, 2020 20:19
Show Gist options
  • Save mingrammer/1f3782ace927d0abc40edd8cc11bd892 to your computer and use it in GitHub Desktop.
Save mingrammer/1f3782ace927d0abc40edd8cc11bd892 to your computer and use it in GitHub Desktop.
def save_ranking(*args):
print(args)
save_ranking('ming', 'alice', 'tom', 'wilson', 'roy')
# ('ming', 'alice', 'tom', 'wilson', 'roy')
@mitesh1112
Copy link

mitesh1112 commented Jun 29, 2018

I believe *args represents a tupple.. So don't you think you should change
# ['ming', 'alice', 'tom', 'wilson', 'roy']
to
# ('ming', 'alice', 'tom', 'wilson', 'roy')
Thanks

@vhcandido
Copy link

@mitesh1112 is right, it's a tuple

@mingrammer
Copy link
Author

@mitesh1112 Thank you for correction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment