OneCompiler

Python Fibonacci Series

172
 terms = int (input ("Enter the Number of terms required:"))
num1=0;
num2=1;
num3=0;
print(num1)
print(num2)
for n in range (2,terms):
    num3=num1+num2
    print(num3)
    num1=num2
    num2=num3