Python · Lesson 7.5 · Pro
*args and **kwargs
Functions that take any number of values, and passing a list or dictionary as arguments.
In this lesson
- Any number of values: *args
- Named options: **kwargs
- Unpack when calling
- print is an *args function
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.