The Fibonacci sequence
Created on Jan. 16, 2017 by Julien Palard
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.
Examples
>>> fibonacci(2)
[1, 1]
>>> fibonacci(5)
[1, 1, 2, 3, 5]