Here in this
article I am going to show how we can print a Fibonacci series in Python.
Follow below Steps:
Step
1: Open IDLE(Python GUI) in your system.
Step 2 : Type the below code and save the code Eg:- I have
saved with Fibonacci name.
b = 0
c = 1
print("fibonacci
series for 50 terms")
print("",b)
print("",c)
for a in
range(1,50):
d = b+c
b = c
c = d
print("",d)
print("end")
Step 3 : Open command prompt.
Step
4 : Go to the saved script folder.
Step
5 : Write python <Script name>.py for
execution.(Eg.- python fibonacci.py)
