Back Navigation Next Navigation Conceptual Review (page 53 of 55)

In a function, Python has the ability to package multiple arguments as a tuple (*args) parameter or a dictionary (**kwargs) parameter.

argskwargs


Using *args and **kwargs in Python functions provides flexibility and scalability. It would be practically unfeasible to develop a function with 45 or 50 different parameters. *args and **kwargs allow us to package arguments into containers and then have the function work with a variable number of passed arguments.