Extended Argument Syntax
What is the purpose of using default arguments in Python?
Which of the following is an example of a required argument in Python?
What is the purpose of using the **kwargs syntax in Python?
Which of the following is an example of a function with variable-length arguments in Python?
What distinguishes a keyword argument from a required argument in Python?
Which of the following is an example of a function with both default and keyword arguments in Python?
What happens if a required argument is not provided when calling a Python function?
Can a function have both variable-length arguments and keyword arguments in Python?
Which of the following is an example of a function with required arguments only in Python?
What is the output of the following code?
def my_fun(a, b=1, *args, **kwargs):
print(a, b, args, kwargs)
foo(10,20, *(30,40), **{'c': 3, 'd': 4})