◐ Shell
clean mode source ↗

Python Language Tutorial => Recursion

Recursion needs a stop condition stopCondition in order to exit the recursion.

The original variable must be passed on to the recursive function so it becomes stored.