An ESPN scorecard component needs a short Fibonacci sequence for an analytics visualization. Write a non-recursive function that generates the first n Fibonacci numbers, starting with 0 and 1.
Return the sequence as a list. The function must use iteration and must not call itself or use a recursive helper.
n, representing the number of Fibonacci terms to generate.n integers in Fibonacci order.n = 0, return an empty list.def fibonacci_sequence(n):