Corteva Agriscience can use simple numerical sequences when modeling recurring growth patterns. Given a non-negative integer n, generate the first n values of the Fibonacci sequence.
The sequence is defined as F(0) = 0, F(1) = 1, and F(k) = F(k - 1) + F(k - 2) for k >= 2.
Implement fibonacci(n):
n representing the number of sequence values to return.F(0) through F(n - 1) in order.n is 0.def fibonacci(n):