Day 8 Puzzle
Fix the function so that it returns the fibonacci sequence up to the nth term.
def solve(): n = 5 fib = [0, 1] for i in range(n - 1): fib.append(fib[-1] + fib[-2]) return fib
Run
🎉Your code works. Accidentally impressive.