Show the output of the following code:
def

Loading

Choose the correct option.

Show the output of the following code:
def f2(n, result):
    if n == 0:
        return0
    else:
        return f2(n – 1, n + result)
print(f2(20))

A. 0
B. 1
C. 2
D. 3

Leave a Comment