Examveda

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)

A. 24

B. 14

C. 2

D. 9

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python