python recursion- Examples of Recursions in Python - Part #1

preview_player
Показать описание
Python Recursive Examples --In this series, I will be going over examples of recursive functions and break down each recursive call, so you get an idea of what's going on under the hood. Leave feedback to let me know what I can do better.
Рекомендации по теме
Комментарии
Автор

I spend hours looking for a good way to simplify recursive codes and I think your way is the best so far. This was absolutely helpful, , , thank you.

zerocloudc
Автор

def count(num):
if num == 0:
return num
print(num)
return count(num-1)
count(10)

kvelez
Автор

def digits(num):
if num == 0:
return num
return 1+digits(num//10)
print(digits(543))

def reverse(num):
if num < 10:
return num
print(num%10, end='')
return reverse(num//10)
print(reverse(543))

kvelez
Автор

It was so easy to understand...thank you so much from india

kartikprasher
Автор

as i subscribe after watching this video as the first for many. thank u sir

Yourtutor-ke
Автор

Thank u soo much, keep doing more videos.

wolfisraging
join shbcf.ru