Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def make_fibonacci(n):
fib = []
a, b = 0, 1
for i in range(n):
a, b = b, a+b
fib.append(a)
return tuple(fib)
make_fibonacci(8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment