Last active
October 29, 2020 20:19
-
-
Save mingrammer/1f3782ace927d0abc40edd8cc11bd892 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def save_ranking(*args): | |
print(args) | |
save_ranking('ming', 'alice', 'tom', 'wilson', 'roy') | |
# ('ming', 'alice', 'tom', 'wilson', 'roy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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