Vidyalelo
Python · Q119

Functions in Python

Programming · Python · question 119

Q119

What will be the output of the following code:def multiply(a, *args): result = a for num in args: result *= num return resultresult = multiply(2, 3, 4)print(result)

A.
24
Answer
B.
14
C.
2
D.
9

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board