This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Can a function that defines arguments be called without arguments?
No, because defined arguments are required.
Yes, because they're optional.
Yes, as long as there's a return value.
Can a function with only keyword arguments be called without any arguments?
Yes, because keyword arguments are optional when calling a function.
No, because you must pass values so that the function can work.
No, because it needs arguments.
Can a function define arguments and keyword arguments?
No, only arguments or keyword arguments are allowed.
Yes, but only if keyword arguments are defined before arguments.
Yes, but only if arguments are defined before keyword arguments.
What is the minimum number of arguments that a function can accept when you're using variable arguments?
Zero. There's no need to pass any argument at all when you're using variable arguments.
At least one argument is needed because arguments in functions are required.
At least one argument is needed unless it's a keyword argument.
What is the syntax to declare variable arguments and variable keyword arguments?
args, kwargs
*a, *kw
*args, **kwargs
You must answer all questions before checking your work.
Continue
Was this page helpful?