LearnPy Hub
← Loops problems
Medium

First n Fibonacci Numbers

Read n ≥ 1 and print the first n Fibonacci numbers (starting 0 1) on one line, using a loop.

Input

One integer.

Output

One line.

Sample 1

Input
10
Output
0 1 1 2 3 5 8 13 21 34

Sample 2

Input
1
Output
0
solution.py
Output appears here
First n Fibonacci Numbers · Python practice problem · LearnPy Hub