Function arguments in Python define the input that a function can accept. When you call a function, you pass these arguments to it.
In the exercise, the function `func(a, b, c=5)` has three arguments: `a`, `b`, and `c`. Here’s what you need to know:
- `a` and `b` are positional arguments, meaning they are assigned based on their position in the function call.
- `c` is an argument with a default value, meaning it takes the value `5` unless specified otherwise.
Understanding how to pass arguments to a function is crucial for proper function usage.
When calling `func(1, c=3, b=2)`, the order of arguments matters. `a` takes the value `1`, `b` is explicitly set to `2`, and `c` is explicitly set to `3`.