r/PythonLearning • • Aug 16 '25

Recursion is the only way

Post image

This made ne laugh. Why do something without recursion when you can do it with recursion! Actually quite an interesting way to add, or multiply.

44 Upvotes

8 comments sorted by

View all comments

1

u/WhiteHeadbanger Aug 17 '25

If a == 0 then you also have infinite recursion, or is this what should happen?