Skip to content

Commit

Permalink
✏ Update first-steps.md, clarify distinction between parameter and …
Browse files Browse the repository at this point in the history
…argument (#176)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 17, 2022
1 parent a1f3708 commit aac4ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial/first-steps.md
Expand Up @@ -432,14 +432,14 @@ are called "Python function parameters" or "Python function arguments".

It's quite technical... and somewhat pedantic.

One refers to the variable name in a function *declaration*. Like:
*Parameter* refers to the variable name in a function *declaration*. Like:

```
def bring_person(name: str, lastname: str = ""):
pass
```

The other refers to the value passed when *calling* a function. Like:
*Argument* refers to the value passed when *calling* a function. Like:

```
person = bring_person("Camila", lastname="Gutiérrez")
Expand Down

0 comments on commit aac4ce1

Please sign in to comment.