1A function definition may look like:
2
3def f(pos1, pos2, /, pos_or_kwd, *, kwd1, kwd2):
4 ----------- ---------- ----------
5 | | |
6 | Positional or keyword |
7 | - Keyword only
8 -- Positional only
9
10where / and * are optional.
11If used, these symbols indicate the kind of parameter by how
12the arguments may be passed to the function:
13 positional-only, positional-or-keyword, and keyword-only.
14Keyword parameters are also referred to as named parameters.