Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 74)
74.
What is the purpose of the **kwargs in a function definition?
To indicate a keyword argument.
To specify default values for arguments.
To allow the function to accept a variable number of keyword arguments.
To define a dictionary of arguments.
Answer: Option
Explanation:
The **kwargs in a function definition allows the function to accept a variable number of keyword arguments, which are passed as a dictionary.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.