What will be the output of the following code:
def multiply(a, *args):
result = a
for num in args:
result *= num
return result
result = multiply(2, 3, 4)
print(result)
result = a
for num in args:
result *= num
return result
result = multiply(2, 3, 4)
print(result)
A. 24
B. 14
C. 2
D. 9
Answer: Option A

Join The Discussion