mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)
This commit is contained in:
parent
8c237a7a71
commit
d71f5adc41
1 changed files with 3 additions and 2 deletions
|
@ -409,8 +409,9 @@ What is the difference between arguments and parameters?
|
|||
|
||||
:term:`Parameters <parameter>` are defined by the names that appear in a
|
||||
function definition, whereas :term:`arguments <argument>` are the values
|
||||
actually passed to a function when calling it. Parameters define what types of
|
||||
arguments a function can accept. For example, given the function definition::
|
||||
actually passed to a function when calling it. Parameters define what
|
||||
:term:`kind of arguments <parameter>` a function can accept. For
|
||||
example, given the function definition::
|
||||
|
||||
def func(foo, bar=None, **kwargs):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue