
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
How to print the Fibonacci Sequence using Python?
Fibonacci series contains numbers where each number is sum of previous two numbers. This type of series is generated using looping statement.
Example
x=0 y=1 fibo=0 while fibo<10: fibo=fibo+1 z=x+y print (z) x,y=y,z
Output
Above program print 10 numbers in Fibonacci series
1 2 3 5 8 13 21 34 55 89
- Related Articles
- Python Program to Display Fibonacci Sequence Using Recursion
- How to print the first ten Fibonacci numbers using C#?
- The Fibonacci sequence in Javascript
- Finding Fibonacci sequence in an array using JavaScript
- 8085 program to generate Fibonacci sequence
- 8086 program to generate Fibonacci Sequence
- Fibonacci like sequence in JavaScript
- Print first n Fibonacci Numbers using Direct Formula
- How to print to the Screen using Python?
- Python Program to Find the Fibonacci Series Using Recursion
- Print numbers in sequence using thread synchronization
- C++ Program to Search Sorted Sequence Using Divide and Conquer with the Aid of Fibonacci Numbers
- Java program to print the fibonacci series of a given number using while loop
- Java program to print a Fibonacci series
- Write a Golang program to print the Fibonacci series

Advertisements