A Masimo patient-monitoring component needs a small Fibonacci sequence for a diagnostic display. Given a non-negative integer n, generate the first n Fibonacci terms, beginning with 0, 1.
Implement fibonacci_terms(n) and return the sequence as a list. The caller may print the returned list. Do not use recursion as the primary approach.
n representing the number of Fibonacci terms to generate.n integers, where each term after the first two equals the sum of the previous two terms.F(0) = 0, F(1) = 1.def fibonacci_terms(n):