Q.No.1 - Write a Python Program to display Fibonacci Sequence (first 20 terms) using Recursion.
Sol.- Explaination of this code is given below:
def fib(n):
if n<=1:
return(n)
else:
return(fib(n-1)+fib(n-2))
n=int(input("Enter number of terms :"))
for i in range(0,n):
print(fib(i))
'For 20 number just switch n value = 20.'