gh-85023: [doc] clarify parameters vs arguments explanation in FAQ (GH-94282)

This commit is contained in:
Arun Mani J 2022-06-27 03:27:41 +05:30 committed by GitHub
parent 8c237a7a71
commit d71f5adc41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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