arr = [90,2,3,4,5,6,7,8,9,101]
n = len(arr)
i = 0
Num = 0
def recursor(n,i,Num):
if n == 0:
return n
else:
#print(arr[i])
Num = arr[i] + Num
print(Num)
i += 1
return recursor(n-1,i,Num)
(recursor(n,i,Num))
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Don't use sum as the variable, it's a built-in function of python
Thanks I will not use in future