Provide a function that returns the n
first numbers of the fibonacci
sequence.
Name your function fibonacci
and take a single parameter, say n
.
Your function should return an iterable of n
values from the sequence.
>>> fibonacci(2)
[1, 1]
>>> fibonacci(5)
[1, 1, 2, 3, 5]
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts: