Skip to content

Uncommon Python error: RecursionError. This occurs when a recursive function calls itself too many times, exceeding the maximum recursion depth.

Notifications You must be signed in to change notification settings

Bug-Hunter-X/RecursionError-in-Python--exceeding-maximum-recursion-depth-e0r7l

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

RecursionError in Python

This repository demonstrates a common Python error: RecursionError. A RecursionError is raised when the maximum recursion depth is exceeded. This often happens when a recursive function does not have a proper base case or the base case is not reached within the allowed recursion limit.

The bug.py file shows the problematic code, and bugSolution.py provides a solution using iteration.

About

Uncommon Python error: RecursionError. This occurs when a recursive function calls itself too many times, exceeding the maximum recursion depth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages