diff --git a/build.py b/build.py index 8b13789..73a1c71 100644 --- a/build.py +++ b/build.py @@ -1 +1,14 @@ +"""Program to generate Fibonacci sequence""" +n1,n2,n3 = 1,0,0 +fib=[] + +n=int(input("Enter number of terms : ")) + +while(n>0): + fib.append(n3) + n3 = n1+n2 + n1, n2 = n2, n3 + n-=1 + +print(fib)