1write a simple python function to print n terms of Fibonacci series using iteration
Answers
Answered by
0
Answer:
Python program to print fibonacci series using function
In this example, we have used the function as def fib(n)
We have initialized the n1 to 0 and n2 to 1.
if n == 1 then print(n1)
The for loop is used to iterate the values till the given number.
At last, it will print fibonacci series.
Similar questions