Ameriprise financial planning tools may need a short sequence of projected values for an illustrative calculation. Given a non-negative integer n, generate the first n terms of the Fibonacci series.
The sequence starts with F(0) = 0 and F(1) = 1. Each later term equals the sum of the previous two terms. Return the terms in a Python list, in order.
Implement fibonacci_series(n).
n representing the number of terms to generate.n Fibonacci terms.n is 0, return an empty list.def fibonacci_series(n):