VitalEdge's analytics tools need a small utility that generates Fibonacci values for sequence-based calculations. Given a non-negative integer n, return the first n terms of the Fibonacci sequence, starting with 0, 1.
Each term after the first two is the sum of the previous two terms. Return an empty list when n is 0.
Implement fibonacci_series(n).
n representing the number of terms to generate.n Fibonacci numbers.def fibonacci_series(n):