We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a7a6e commit 6e4182aCopy full SHA for 6e4182a
main.py
@@ -0,0 +1,7 @@
1
+n = int(input("Enter the n value: "))
2
+s = []
3
+a, b = 0, 1
4
+for _ in range(n+1):
5
+ s.append(a)
6
+ a, b = b, a + b
7
+print(s)
0 commit comments