What is Recursion in Python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
27th Mar 2018, 4:51 PM
Rashik Desemaru
Rashik Desemaru - avatar
3 Answers
+ 5
It's a tricky concept, where you should always think of defining the base case, where the recursion ends. Otherwise...: https://www.sololearn.com/discuss/307407/?ref=app
27th Mar 2018, 5:57 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
https://www.sololearn.com/Discuss/1172346/?ref=app Can't remember who started this, but this is recursion. A function that calls itself from within itself
27th Mar 2018, 5:41 PM
LordHill
LordHill - avatar
+ 1
Recursion is a programming concept not only in Python which is basically about a function calling itself. Uses for this are pretty limited, a common example is finding a factorial (which can be done with loops too).
27th Mar 2018, 5:12 PM
TurtleShell
TurtleShell - avatar