Write a programBasic10 XPExercise 4/15
Fibonacci into a list
Task
The program asks how many Fibonacci numbers you want (a whole number n ≥ 0) and prints a list of the first n members of the sequence 0, 1, 1, 2, 3, 5, …
Examples
Input
5
Expected output
[0, 1, 1, 2, 3]
After you submit, 4 hidden tests will also check your solution: n = 0, n = 1, n = 2, 12 members.
Python starts the first time you run code.
Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.
Input (stdin)
Each line = one call to input().
Output
Hints
Try it yourself first. Each hint reveals a little more - and lowers the reward a little.
Signed out, hints are free - but no XP is awarded either.
Solution
The solution unlocks after the last hint.