We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e057209 commit 816a3a0Copy full SHA for 816a3a0
fibonacci_SIMPLIFIED
@@ -0,0 +1,10 @@
1
+
2
+#printing fibonnaci series till nth element - simplified version for begginers
3
+def print_fibonacci(n):
4
+ current_no = 1
5
+ prev_no = 0
6
+ for i in range(n):
7
+ print(current_no, end = " ")
8
+ prev_no,current_no = current_no, current_no + prev_no
9
10
+print_fibonacci(10)
0 commit comments