← Winnitude! Search  ·  Reader Mode (1084 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
REAL PYTHON · Real Python · 32 LINKS

Recursion in Python - Real Python

Go to the next lesson

Recursion in Python

Christopher Trudeau 9 Lessons 55m intermediate algorithms python

If 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 Now

Recursion in Python

9 Lessons 55m

  1. 1. Recursion in Python (Overview) 00:59
  2. 2. Recursion Basics 05:14
  3. 3. Exercise: Count Down With Recursion 08:00
  4. 4. Factorials 10:34
  5. 5. Tree Traversal 07:06
  6. 6. Exercise: List File Paths in a Tree 08:00
  7. 7. The Quicksort Algorithm 05:41
  8. 8. Exercise: Build a Recursive Quicksort 08:30
  9. 9. Recursion in Python (Summary) 01:06
Start Now

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 Christopher

Each 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

Related Courses:

Thinking Recursively With Python

← Browse All Courses