Android & iPhone apps are coming soon. Log in for a plan and reminders made for you →

Coding basics · 16 of 20

First n Fibonacci numbers

Return the first n Fibonacci numbers: 0, 1, then each number is the sum of the two before it.

Examples

Input n = 7

Output [0, 1, 1, 2, 3, 5, 8]

Input n = 0

Output []

Your code · Python

Stuck?