Compute the first five Fibonacci numbers with a O(2) complexity. in Python
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
Python
🤖 Code Explanation
This code calculates and prints the first 5 Fibonacci numbers. Fibonacci numbers are a sequence of numbers where each number is the sum of the previous two.
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
More problems solved in Python
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968350.png)