Lecture 9: Lambda Functions, Tuples, and Lists
At a glance
- Price Free to watch, no sign-up
- Runtime 45 min
- Topics Computer Science
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 9 of 25
- Language English
Ana Bell continues MIT's 6.100L, Introduction to CS and Programming using Python, with a lecture on lambda functions and two core Python data types. She covers tuples and lists as indexable sequences of objects, explaining how to create, index, and manipulate them, and contrasts their mutability. The lambda function material shows how to write small, throwaway functions in a single line rather than defining a full function with def, with examples of when that shorthand is appropriate. As with the rest of the course, the lecture is presented on a whiteboard-style setup with code examples worked through live, building on prior lectures' material on functions and preparing students for upcoming topics in the course sequence. This is a straightforward classroom lecture aimed at students already partway through an introductory programming course rather than a standalone tutorial for beginners.