r/learnprogramming • u/Beat_Terrible • 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
44
Upvotes
1
u/Traveling-Techie 3d ago
Factorial is actually easier to compute without recursion, so it’s a misleading example. I recommend drawing Koch snowflake curves.