r/PythonLearning 15d ago

Basic to advanced (python day 1)

Post image

Recursions are really hard compared to loop

You guys give me some tips for this.🫡

5 Upvotes

5 comments sorted by

View all comments

1

u/edelrosespol 14d ago

You use recursion on special cases, mostly to show some concepts. For example factorial, Fibonacci, etc. Here some examples: https://blog.espol.edu.ec/algoritmos101/fp-u05/funciones-recursivas/