Coding Through the Alphabet - Fibonacci in Python
Python is a high-level, general-purpose programming language known for its clean syntax and readability. It is one of the most widely used languages in the world.
How to test
Prerequisites: Python 3
- Ubuntu/Debian:
sudo apt install python3 - macOS:
brew install python - Windows: https://www.python.org/downloads/
python3 fibonacci.py
Expected output:
0
1
1
2
3
5
8
13
21
34
Source Code
a, b = 0, 1
for _ in range(10):
print(a)
a, b = b, a + b
Local Testing Screenshot
