Python

Recursion – Python Like a Pro #10

Recursion is a technique in which a function can call itself, opening another instance of that function within the current one. The capabilities of iteration and recursion overlap greatly, but in many cases, a recursive solution is significantly cleaner and more efficient. Recursive solutions excel over iterative ones when the target objective involves a task with arbitrary dimensionality. The general construction of a recursive function consists of a base case and a recursive case. While the concept may seem simple, the execution is not! Many novice programmers struggle to grasp recursion. Make today the day you master recursion!

Check out my book, “Building Smart LEGO MINDSTORMS EV3 Robots,” available on Amazon: https://amzn.to/2MyGVCl

My Patreon supporters for more than $5 for the month of September were: Louson and Jeffrey Jahja. Thank you very much!

My supporters on Patreon contribute additional funding that allow me to build up and improve this channel and to make more videos. If you would like to help, you can support me here: https://www.patreon.com/builderdude35

Special thanks to my friend Preston Nichols for designing Builderdude35’s introduction and logo!