Aryan PrajapatKnowledge Contributor
Write a program to produce Fibonacci series in Python.
Write a program to produce Fibonacci series in Python.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
# Enter number of terms needednbsp;#0,1,1,2,3,5….
a=int(input(“Enter the terms”))
f=0;#first element of series
s=1#second element of series
if a=0:
print(“The requested series is”,f)
else:
print(f,s,end=” “)
for x in range(2,a):
print(next,end=” “)
f=s
s=next