Python Forum
How recursion function is applied? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How recursion function is applied? (/thread-14539.html)



How recursion function is applied? - dukoolsharma - Dec-05-2018

What is recursion function in python? can anyone explain it with example?


RE: How recursion function is applied? - buran - Dec-05-2018

https://www.python-course.eu/python3_recursive_functions.php


RE: How recursion function is applied? - himanibansal - Dec-06-2018

In python, when a function makes a call to itself, it is termed recursion. But then, in order for it to avoid forming an infinite loop, we must have a base condition. Let’s take an example.
>>> def facto(n):
if n==1: return 1
return n*facto(n-1)
>>> facto(4)