You are on page 1of 1

A 65% ■ 11:47 am

F Python Challenge
ROUND 2 / 5
Amit Biswas Muntasir Rahman...

0 X Wrong Wrong X
What is the output of this code?
def recur(n):
if n == 0:
return 0
else:
return n + recur(n-1)
print(recur(3))
by Daniel Podobinski
6

You might also like