Question #22

What will happen?
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)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: