Fibonacci Sequence medium
loops

Write a function solution(n) that returns a list of the first n Fibonacci numbers.

The Fibonacci sequence starts: 0, 1, 1, 2, 3, 5, 8, 13, ...

Example

solution(6) → [0, 1, 1, 2, 3, 5]
solution(1) → [0]
solution.py
💡 Tip: Press Ctrl+Enter to run