Save this video free

CS 238 Week 9 Lecture

James Andro-Vasko · 21:09 · Watch on YouTube

CS 238 Week 9 Lecture Watch on YouTube →

Overview

James Andro-Vasko introduces recursion in Python as a function calling itself with a changing parameter until it reaches a base case, then returning results through the call stack. Using factorials and lists, he compares recursive solutions with loops and demonstrates Python’s default recursion limit of 1,000, including how `sys.setrecursionlimit` can raise it.

Key takeaways

Chapters

0:00 Recursion Basics and Iterative Factorial
3:23 Recursive Factorial and the Call Stack
10:23 Recursion Errors and Python’s 1,000-Call Limit
14:15 Recursive List Sum and List Construction

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, James Andro-Vasko.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.