Q. What will be the output of the following code snippet?
Code:
def solve(a, b): return b if a == 0 else solve(b % a, a) print(solve(20, 50))
β
Correct Answer: (A)
10
def solve(a, b): return b if a == 0 else solve(b % a, a) print(solve(20, 50))
You must be Logged in to update hint/solution