answersLogoWhite

0


Best Answer

The Fibonacci series is a sequence of numbers, with the first two defined as 0 and 1, and all following numbers defined as the sum of the two previous numbers. The following python program asks a user how many Fibonacci numbers they want calculated, then calculates them.

NOTE: This site removes formatting from answers. Replace (tab) with a tab, or four spaces.

#!/usr/bin/python

print("This program finds Fibonacci numbers.")

answer = "y"

while answer == "y":

(tab)print("How many terms would you like?")

(tab)n = int(input(": "))

(tab)a = 0

(tab)b = 1

(tab)for i in range(0,n):

(tab)(tab)print(str(a) +",")

(tab)(tab)c = a + b

(tab)(tab)a = b

(tab)(tab)b = c

(tab)print("Would you like to run again? (y/n)")

(tab)answer = input(": ")

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: You want python program to find fibbonaci series?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the 111TH term of the sequence?

Depends on the sequence. There may be a formula for the Nth term in which case it is easy. Or the value may depend on some combination of previous terms (as in the Fibbonaci series).


Program for sin series in c language?

find the program in c-pgms.blogspot.com


How do you use the python programming method on a computer?

Go to python.org and download the latest version of python, then find a tutorial for it. If you want a good tutorial and links to other tutorials go to civfanatics.com and look in the modding and editing section of the forums. some tutorials may apply to the Civilization game series but some of them pertain to python in general.


Write a program to find the sum of sine series?

Writing a program for a sum of sine series requires a rather long formula. That formula is: #include #include #include main() { int i,n,x; .


What is the c program to find fibnocci series?

#include<stdio.h> #include<conio.h> void main() { }


Where did you find green tree python?

You can find the Green Tree Python (Morelia Viridis) in New Guinea, Islands in Indonesia, and Cape York Peninsula in Australia.


Can you have the program in C plus plus for recursive function generating a series of terms?

Yes, this can be done. For example for Fibonacci series. You will find plenty of examples if you google for the types of series you need to be generated.


Where do you find python reguis?

Python regius is a non-venomous python species found in Africa. This is the smallest of the African pythons and is popular in the pet trade. No subspecies are currently recognized


Where can you find a ball python cheap?

usually on craigslist.org


Where can you find green tree python?

in green trees ^.^


Where do you find the serial number on a colt python?

On the butt


This animal Has heat sensors on its upper lip to find prey?

python do have heat sensors on there upper lip