mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Removed confusing comments
This commit is contained in:
parent
7d8bab656f
commit
0049a475ed
@ -404,7 +404,7 @@ add(y=6, x=5) # Keyword arguments can arrive in any order.
|
||||
|
||||
|
||||
# You can define functions that take a variable number of
|
||||
# positional args, which will be interpreted as a tuple if you do not use the *
|
||||
# positional args, which will be interpreted as a tuple
|
||||
def varargs(*args):
|
||||
return args
|
||||
|
||||
@ -412,7 +412,7 @@ varargs(1, 2, 3) # => (1, 2, 3)
|
||||
|
||||
|
||||
# You can define functions that take a variable number of
|
||||
# keyword args, as well, which will be interpreted as a dict if you do not use **
|
||||
# keyword args, as well, which will be interpreted as a dict
|
||||
def keyword_args(**kwargs):
|
||||
return kwargs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user