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

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Step Through Complex Scripts

Give Feedback

Now that you’ve seen how to step through a relatively simple script, you’ll see what it’s like to step through a script that’s a bit more complex. The example you’ll be looking at is a factorial program that is recursive, so it calls the same function again.

If you’re not sure what a recursive program is or how it works, then don’t worry. You don’t need to know any of that in order to follow along. Stepping through this example will help you understand recursion anyway!

Become a Member to join the conversation.