The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #137
def foo(**kwargs):
return kwargs
foo(a=1, b=2, c=3)
When a function is given the **kwargs parameter, the kwarg argument is then represented as a dictionary in the function. (docs.python.org/dev/tutorial/controlflow.html#more-on-def...)
What is the type of the returned object in the code snippet below?
— The Python Quiz (@thepythonquiz) December 30, 2020
def foo(**kwargs):
return kwargs
foo(a=1, b=2, c=3)
A dictionary
A list
A tuple#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: