Lecture 16: Recursion on Non-numerics
At a glance
- Price Free to watch, no sign-up
- Runtime 1 h 18 min
- Topics Computer Science
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 16 of 25
- Language English
Ana Bell continues MIT's 6.100L, Introduction to CS and Programming using Python, with a lecture on extending recursion beyond numeric problems. She shows how the same recursive pattern used for counting or arithmetic can be applied to indexable ordered sequences such as strings and tuples, walking through examples that break a sequence into a base case and a smaller recursive call. The lecture builds on earlier recursion material in the course, reinforcing how to identify what counts as a base case and how to combine results across recursive calls when the data being processed is not a number. Delivered as a standard lecture hall session with slides and live code walkthroughs, it is aimed at students already familiar with basic recursion who are learning to generalize the technique to other Python data types.