Computer Science, asked by VaibhavGupta79, 9 months ago

write a program to find the sum of the series (0+1+1+2+3+5+8......nth term...)​

Answers

Answered by rishimishra1902
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 Anonymous
14

Answer:

\huge\underline{\overline{\mid{\bold{\green{✭ansWer✭}}\mid}}}

yes bro

Similar questions