Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahnazi2002 authored Jan 6, 2022
1 parent 89a7a6e commit 6e4182a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
n = int(input("Enter the n value: "))
s = []
a, b = 0, 1
for _ in range(n+1):
s.append(a)
a, b = b, a + b
print(s)

0 comments on commit 6e4182a

Please sign in to comment.