Lecture 4: Loops over Strings, Guess-and-Check, and Binary
At a glance
- Price Free to watch, no sign-up
- Runtime 1 h 13 min
- Topics Computer Science, Mathematics
- Source MIT, Introduction to CS and Programming using Python
- Lecture Lecture 4 of 25
- Language English
Ana Bell continues MIT's 6.100L Introduction to CS and Programming using Python with a lecture on iteration. She shows how loops can step through any sequence of values, including ranges of numbers and the characters of a string, and uses guess-and-check as a worked example of exhaustive enumeration: when a set of candidate solutions is enumerable, checking every one eventually finds an answer. The lecture then turns to binary numbers, explaining how converting between decimal and binary illuminates how a computer actually stores values in memory. Bell works through code examples on screen, building up programs step by step rather than presenting finished solutions, in the style of MIT OpenCourseWare's full lecture capture. Runtime is about 73 minutes, consistent with a complete classroom session.