Recursion in Python - Real Python
Recursion in Python
Christopher Trudeau 9 Lessons 55m intermediate algorithms pythonIf you're familiar with functions in Python , then you know that it's quite common for one function to call another. In Python, it's also possible for a function to call itself! A function that calls itself is said to be recursive , and the technique of employing a recursive function is called recursion .
It may seem peculiar for a function to call itself, but many types of programming problems are best expressed recursively. When you bump up against such a problem, recursion is an indispensable tool for you to have in your toolkit.
By the end of this video course, you'll understand:
- What it means for a function to call itself recursively
- When recursion might be your best best for solving a problem
- How you can implement recursion for various use cases in Python
Along the way, you'll study several specific programming tasks where you can use recursion in Python. You'll also explore alternatives to recursion.
What's Included:
- 9 Lessons
- Video Subtitles and Full Transcripts
- 2 Downloadable Resources
- Accompanying Text-Based Tutorial
- 3 Hands-On Coding Exercises
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths:
Start NowRecursion in Python
9 Lessons 55m
- 1. Recursion in Python (Overview) 00:59
- 2. Recursion Basics 05:14
- 3. Exercise: Count Down With Recursion 08:00
- 4. Factorials 10:34
- 5. Tree Traversal 07:06
- 6. Exercise: List File Paths in a Tree 08:00
- 7. The Quicksort Algorithm 05:41
- 8. Exercise: Build a Recursive Quicksort 08:30
- 9. Recursion in Python (Summary) 01:06
About Christopher Trudeau
Christopher has a passion for the Python language and writes, records, and podcasts for Real Python. He is a consultant who helps advise organizations on how to improve their technical teams.
» More about ChristopherEach tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:
Christopher
Kate
Tappan
John
Joanna
Aldren
Bartosz
Jacob