
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Print 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
Advertisements