Write a program that generates the Fibonacci series for a given number of terms n. The Fibonacci series starts with 0, 1, and each next term is the sum of the previous two terms.
Implement a function that returns the first n Fibonacci numbers as a list.
nn Fibonacci numbersn <= 0, return an empty list.def fibonacci_series(n):