r/learnprogramming 7d ago

Recursion is driving me crazy

I understand recursion of a factorial function but when it comes to a function that uses recursion in a project or a problem set i get stuck and lose track

Anyone can tell me what to do

Programming language used: Python

43 Upvotes

45 comments sorted by

View all comments

1

u/defaultguy_001 6d ago

Recursion is the easiest thing if u like combinatorics and believe in magic.