← Quiz: Python Functions: all 15 questions
Quiz: Python Functions · Question 3 of 15
What type is args inside def f(args)?
What type is args inside def f(*args)?
- A.list
- B.tuple
- C.dict
- D.set
Answer & explanation
Correct answer: tuple
*args collects positional arguments into a tuple.
Can you get the rest right without peeking?
Take the timed Quiz: Python Functions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →