Courses
Sign inSign up

Recursion in Python

Program recursive functions in Python to gear up for algorithmic thinking.

11 Lessons110 Exercises

Induction

Recursion

The Call Stack

Avoiding Infinite Recursion

Level Review

Multiple Base Cases

Multiple Recursive Calls

Tracing Multiple Calls

Dynamic Recursive Steps

Level Review

Recurrence Relations

Conditioning on Input

Choosing a Recursive Path

Level Review


Course description

In this course you will write and debug recursive functions, while learning how to think inductively for algorithmic problem solving. Through a sequence of digital currency-themed programming challenges, you will learn how to break a problem into smaller versions of itself. More advanced topics like recursing over data structures, such as trees, are introduced gradually.


Topics covered

  • Induction
  • Recursion
  • The Call Stack
  • Avoiding Infinite Recursion
  • Multiple Base Cases
  • Multiple Recursive Calls
  • Tracing Multiple Calls
  • Dynamic Recursive Steps
  • Recurrence Relations
  • Conditioning on Input
  • Choosing a Recursive Path

Prerequisites and next steps

This is a great course if you're comfortable with variables, loops, conditional statements, functions, and basic data structures (lists, dictionaries, tuples) in Python. Use it to level up your coding skills and grasp the concepts needed for algorithmic problem solving.