What does *args mean in function?

Questions & AnswersCategory: PythonWhat does *args mean in function?
Geek Boy Staff asked 2 years ago

What does *args mean in function?

a. The special *args syntax is most commonly used in function definitions. It is used to pass a variable number of arguments to a function – arguments with specific names.
b. The special *args syntax is most commonly used in function definitions. It is used to pass a variable number of arguments to a function – arguments that do not have a specific name.
c. Python does not have a *args syntax.

1 Answers
Geek Boy Staff answered 2 years ago

b. The special *args syntax is most commonly used in function definitions. It is used to pass a variable number of arguments to a function – arguments that do not have a specific name.