To pass a variable-length key-value pair as an argument to a function, Python provides a feature called **kwargs. kwargs stands for Keyword arguments. It proves to be an efficient solution when one wants to deal with named arguments in their function.
Note: adding ‘**‘ to any term makes it a kwargs parameter. It accepts keywords as arguments.
Please Login to comment...