Question #136

What is the type of the returned object in the code snippet below?
def foo(*args):
    return args

foo(1, 2, 3)

When a function is given the *args parameter, the arg argument is then represented as a tuple in the function. (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅

Similar questions: