Skip to content

Commit

Permalink
fix the link to positional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang committed Oct 4, 2023
1 parent 7c3756f commit e6c7b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lectures/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def f(x):

Functions without a return statement automatically return the special Python object `None`.

(pos_args)=
### Keyword Arguments

```{index} single: Python; keyword arguments
Expand Down
2 changes: 1 addition & 1 deletion lectures/python_advanced_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ In this section, we will explore how to use them and distinguish their use cases

When we operate on a list of parameters, we often need to extract the content of the list as individual arguments instead of a collection when passing them into functions.

Luckily, the `*` operator can help us to unpack lists and tuples into [*positional arguments*](https://63a3119f7a9a1a12f59e7803--epic-agnesi-957267.netlify.app/functions.html#keyword-arguments) in function calls.
Luckily, the `*` operator can help us to unpack lists and tuples into [*positional arguments*](pos_args) in function calls.

To make things concrete, consider the following examples:

Expand Down

0 comments on commit e6c7b4c

Please sign in to comment.