mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.11] gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282) (GH-94311)
(cherry picked from commit d71f5adc41)
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
Co-authored-by: Arun Mani J <49952138+arun-mani-j@users.noreply.github.com>
This commit is contained in:
parent
442dd8ffa5
commit
575997af62
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