InterviewSolution
Saved Bookmarks
| 1. |
What is the usage of *args and **kwargs? |
|
Answer» In Python, we can pass a variable number of arguments to a function when we are unsure about how may arguments NEED to be passed to a function. These arguments can be passed using a special TYPE of symbols as depicted below.
Function flexibility can be achieved by PASSING these two types of special symbols. |
|