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 #22
def my_function(arg1, arg2):
return arg1 + arg2
my_function(1,2,3)
It will give a TypeError error as the function is defined to receive 2 arguments, but 3 are given. (docs.python.org/3/library/functions.html)
What will happen?
— The Python Quiz (@thepythonquiz) June 20, 2020
def my_function(arg1, arg2)
return arg1 + arg2
my_function(1,2,3)
It will return 3.
It will give a TypeError error.#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: