diff --git a/fibonacci_SIMPLIFIED b/fibonacci_SIMPLIFIED new file mode 100644 index 00000000000..77f6854050f --- /dev/null +++ b/fibonacci_SIMPLIFIED @@ -0,0 +1,10 @@ + +#printing fibonnaci series till nth element - simplified version for begginers +def print_fibonacci(n): + current_no = 1 + prev_no = 0 + for i in range(n): + print(current_no, end = " ") + prev_no,current_no = current_no, current_no + prev_no + +print_fibonacci(10)