diff options
author | Stanislav (Stanley) Modrak <44023416+smith558@users.noreply.github.com> | 2023-09-21 17:26:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 17:26:42 +0100 |
commit | 0a0b3555d5e9923907bb2b8e953a11c5b94a1464 (patch) | |
tree | a5d2394c00f07d1a0d814233594834d31a1f681c | |
parent | 143d61db13d4646e15cb36d929e7bdae63bbf6f0 (diff) |
Clarify args and kwargs
-rw-r--r-- | python.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown index c9eac8ae..75b1ec85 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -603,7 +603,7 @@ all_the_args(1, 2, a=3, b=4) prints: """ # When calling functions, you can do the opposite of args/kwargs! -# Use * to expand tuples and use ** to expand kwargs. +# Use * to expand args (tuples) and use ** to expand kwargs (dictionaries). args = (1, 2, 3, 4) kwargs = {"a": 3, "b": 4} all_the_args(*args) # equivalent: all_the_args(1, 2, 3, 4) |