Recursive Function in Python | Python Tutorial | Learn Python

preview_player
Показать описание
Recursion can be defined as the process of defining something in terms of itself. In simple words, it is a process in which a function calls itself directly or indirectly.

Advantages of using recursion:

-A complicated function can be split down into smaller sub-problems utilizing recursion.
-Sequence creation is simpler through recursion than utilizing any nested iteration.
-Recursive functions render the code look simple and effective.

Disadvantages of using recursion:

-A lot of memory and time is taken through recursive calls which makes it expensive for use.
-Recursive functions are challenging to debug.
-The reasoning behind recursion can sometimes be tough to think through.

***********************************************************************
Did you enjoy the video? If so, give it a like above!

Subscribe to our channel for more techie video
Keep Learning!! Keep Growing!!

P.S. Make sure to keep up with us by clicking the bell!
Рекомендации по теме
welcome to shbcf.ru