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))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: