Which of the following is an example of the correct way to specify a variable number of arguments to a function in Python?
variable_args |
||
*args |
||
[args] |
||
arg1, arg2, arg3, ... |
Ques:Which of the following is an example of the correct way to specify a variable number of arguments to a function in Python?
The correct to specify a variable number of arguments to a function in python is *args.
Get Answers For Free
Most questions answered within 1 hours.