Skip to content
Myr

✏ Update `first-steps.md`, clarify distinction between parameter and argument (#176)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean McCarthy · committed by GitHub · parent a1f3708 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

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

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/tutorial/first-steps.md+2 added-2 removed
430 unmodified lines
431 There's actually a very small distinction in Python between "parameter" and "argument".432433 It's quite technical... and somewhat pedantic.434435 One refers to the variable name in a function *declaration*. Like:435 *Parameter* refers to the variable name in a function *declaration*. Like:436437 ```438 def bring_person(name: str, lastname: str = ""):439 pass440 ```441442 The other refers to the value passed when *calling* a function. Like:442 *Argument* refers to the value passed when *calling* a function. Like:443444 ```445 person = bring_person("Camila", lastname="Gutiérrez")446 ```
76 unmodified lines