Function in Python MCQs Exercise I

Ques 1 Function


What is the output of the following Python Code?

def calculate(a, b):
   return b if a == 0 else solve(b % a, a)
res=calculate(5,10)
print(res)

A 10
B 5
C 15
D 1