You are trying to calculate that in your function, but you just need to calculate sum in the for loop.
def fibo(n):
if n<2:
return 1
else:
res = fibo(n-1) + fibo(n-2)
return res
n=7
sum = 0
for i in range(0, n):
r = fibo(i) #I used r in order to call fibo once in each loop.
sum += r
print(r)
print("Suma", sum)
For more information regarding the same, do refer to the Python tutorial that will help you out in a better way.
If you are a beginner and want to know more about Python, then do check out the below Python tutorial video that will help you in understanding the topic in a better way: