Free lab Real Python 3. Zero installs. Your code stays in this browser. Open the playground

Fibonacci Sequence

Medium · 50 XP

Print the first 10 Fibonacci numbers (starting 0, 1) on one line separated by spaces.

Target output
0 1 1 2 3 5 8 13 21 34
Blank · autosaved
PYfibonacci.py
Run your code to check it…
Your next ten minutes

Write Python that does something useful.

Start free. No install, no card, no passive video marathon.

Start learning free → Explore the path