Political Science, asked by Anonymous, 9 months ago

which of the talowing spent there
Which of the following special character is used to define variable length
arguments?
(A) &
(B) $
(D) #


(C) *​

Answers

Answered by poojan
6

Answer:

(C) *

Explanation:

In python, * is used to send the variable length argument list ( i.e., no.of arguments intake at a time ) to a function.

Check the following attachment for the detailed explanation:

To the function x, we passed 5 actual parameters 1,2,3,4,5; where in the definition, formally, we passed a, *b as parameters.

In such case, a takes one parameter (the first one), where *b takes in all the remaining parameters as tuple. so, a=1 and b=(2,3,4,5)

Note: Variable length parameter should be passed as the last formal argument.

Attachments:
Similar questions