Python Miscellaneous Function
2020-05-17
Recursive Functions A function that calls itself is known as Recursive Function. Ex: factorial(3)=3*factorial(2) =3*2*factorial(1) =3*2*1*factorial(0) =3*2*1*1 =6 factorial(n)= nfactorial(n-1) The main advantages of recursive functions are: We can reduce length of the code and improves readability We can solve complex problems very easily. Q. Write a Python Function toContinue Reading