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. (docs.python.org/dev/tutorial/controlflow.html#more-on-def...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: