* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
753 B
Markdown
9 lines
753 B
Markdown
# args & kwargs
|
||
|
||
`*args` allows a function to accept any number of positional arguments as a tuple. `**kwargs` allows any number of keyword arguments as a dictionary. They make functions flexible when the number or names of arguments are not known in advance, and are widely used in Python libraries for passing options through layers of function calls.
|
||
|
||
Visit the following resources to learn more:
|
||
|
||
- [@article@Args and Kwargs in Python – Function Calling Made Easy](https://towardsdatascience.com/args-and-kwargs-in-python-function-calling-made-easy-acfe736f988a/)
|
||
- [@article@Python args & kwargs](https://www.w3schools.com/python/python_args_kwargs.asp)
|
||
- [@video@Python *ARGS & **KWARGS are awesome!](https://www.youtube.com/watch?v=Vh__2V2tXUM) |