Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Maintaining State

In this lesson, you’ll learn two ways to maintain state in recursive functions:

  • Threading the state through recursive calls
  • Global state (not recommended)

Comments & Discussion

Become a Member to join the conversation.