Webeduclick.com
Computer Science Tutorials
def fibonacci(n): if(n<2): return 1 return(fibonacci(n-1)+fibonacci(n-2)) n=int(input("Enter the number of terms :")) for i in range(n): print("Fibonacci(",i,")=",fibonacci(i))
Output: