fibonacci(n) that returns a list containing the first n Fibonacci numbers (starting 0, 1, 1, 2, 3, ...), computed iteratively with a loop (no recursion).fibonacci(6)
[0, 1, 1, 2, 3, 5]
First six Fibonacci numbers.
fibonacci(1)
[0]
Just the first term.
Keep two running variables for the previous two terms and update them each iteration.
Handle n == 1 as a special case that returns just [0].