LECTURES A GRATIS GLOBAL SERVICE
⌕ SEARCH GRATIS GLOBAL ↗
LECTURES / COMPUTER SCIENCE
Decomposition, Abstraction, and Functions
SOURCE: YOUTUBE · NO YOUTUBE TRACKING UNTIL YOU PRESS PLAY · TROUBLE PLAYING? WATCH AT THE SOURCE ↗

Decomposition, Abstraction, and Functions

46 MIN · EN · STATUS: [ STREAMING ]
RATE THIS
MIT · Introduction to CS and Programming using Python · LECTURE 7

At a glance

Ana Bell teaches lecture seven of MIT's 6.100L, Introduction to Computer Science and Programming Using Python, on how functions organize code. She explains functions as black boxes that suppress implementation detail from the user, taking zero or more inputs and producing a return value. The lecture covers how a function only executes when called, how the call expression is replaced by whatever it returns, and how decomposition lets a programmer break a large problem into smaller, reusable pieces. Abstraction and specification get particular attention: writing a function's docstring as a contract that describes what it does without requiring the caller to know how it works internally. Bell works through examples on the whiteboard and in Python to show scope, parameter passing, and return behavior in practice, building toward the idea that well-designed functions make larger programs easier to write, test, and reason about.

At a glance

Lecture facts

Runtime compared with the other 799 Computer Science lectures
Runtime46 m
Compared with Computer ScienceShorter than 77%
Link status✓ Working · checked yesterday
This series

Introduction to CS and Programming using Python

Every lecture in order, sized by its length.

  • Earlier lectures
  • This lecture
  • Still to come
Lecture 7 of 25 6 h 24 m before this · 26 h 30 m in total

More from this course

12 LECTURES
Introduction to CS and Programming Using Python: Lecture 1

Introduction to CS and Programming Using Python: Lecture 1

MIT · 64 MIN
Strings, Input/Output, and Branching

Strings, Input/Output, and Branching

MIT · 79 MIN
Lecture 3: Iteration

Lecture 3: Iteration

MIT · 47 MIN
Lecture 4: Loops over Strings, Guess-and-Check, and Binary

Lecture 4: Loops over Strings, Guess-and-Check, and Binary

MIT · 73 MIN
Lecture 5: Floats and Approximation Methods

Lecture 5: Floats and Approximation Methods

MIT · 47 MIN
Lecture 6: Bisection Search

Lecture 6: Bisection Search

MIT · 74 MIN
Functions as Objects

Functions as Objects

MIT · 78 MIN
Lecture 9: Lambda Functions, Tuples, and Lists

Lecture 9: Lambda Functions, Tuples, and Lists

MIT · 45 MIN
Lecture 10: Lists and Mutability

Lecture 10: Lists and Mutability

MIT · 75 MIN
Lecture 11: Aliasing and Cloning

Lecture 11: Aliasing and Cloning

MIT · 46 MIN
Lecture 12: List Comprehension, Functions as Objects, Testing, and Debugging

Lecture 12: List Comprehension, Functions as Objects, Testing, and Debugging

MIT · 76 MIN
Exceptions and Assertions

Exceptions and Assertions

MIT · 43 MIN