Closed kirtisaraf247 closed 2 years ago
merge #46 please @Meghwantsingh
merge #46 please @Meghwantsingh
Hello, could you pls comment the lines of code.
yes
merge #46 please @Meghwantsingh
Hello, could you pls comment the lines of code.
Yes sure,
code---
def fib(n) :
if n==0:
return 0
elif n ==1 :
return 1
else :
return fib(n-1) +fib(n-2)
num = int(input("Enter a number: "))
print("The {num} element of fibonacci series is: ".format(num), fib(7))
I know python is easy to understand just like English, but still could you explain the while loop why are you using it and for what. This one RecursionPython/MergeSort.py. Good day.
Merge it sir @Meghwantsingh