🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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)?

  1. A.list
  2. B.tuple
  3. C.dict
  4. 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 →