write a program to find the sum of the series (0+1+1+2+3+5+8......nth term...)
Answers
Answered by
1
Answer:
def fibonacci_sum_calculator(n):
fibonacci = [0,1]
for i in range(n):
number = fibonacci[-1] + fibonacci[-2]
fibonacci.append(number)
return sum(fibonacci)
The program firsts adds the fibonacci series till n to a list. Then it computes the sum of the list and returns the sum
Answered by
14
Answer:
yes bro
Similar questions