summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcel Ribeiro-Dantas <ribeirodantasdm@gmail.com>2023-09-21 19:33:34 -0300
committerGitHub <noreply@github.com>2023-09-21 19:33:34 -0300
commitc6bca8aa52fc8632445da36e0d21973aa83694b3 (patch)
treea5d2394c00f07d1a0d814233594834d31a1f681c
parent143d61db13d4646e15cb36d929e7bdae63bbf6f0 (diff)
parent0a0b3555d5e9923907bb2b8e953a11c5b94a1464 (diff)
Merge pull request #4757 from smith558/patch-9
[python/en] Clarify args and kwargs
-rw-r--r--python.html.markdown2
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)