Photo by Julia Kadel on Unsplash

Recursive Functions in Python

Recursive Functions in Python

Example

The mathematical expression of factorial.
The mathematical expression of factorial.

Limitations

import sys
sys.setrecursionlimit(1_500)
# Output/home/antoine/.jupyter/
L--migrated
L--jupyter_notebook_config.py
L--/home/antoine/.jupyter/nbconfig
L--L--edit.json
L--L--notebook.json

Final Thoughts

Data Scientist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store