Lecture 4: Loops over Strings, Guess-and-Check, and Binary
This lecture explains iteration in simple programs like guess-and-check, binaries, and fractions in Python. Loops can iterate over any sequence of values including a range for numbers or a string. Guess-and-check provides a simple algorithm for solving problems. When the set of potential solutions is enumerable, exhaustive enumeration is guaranteed to work (eventually). Binary numbers help us understand how the machine works. Converting to binary will help us understand how decimal numbers are stored
Course Info
Instructor
Departments
As Taught In
Fall
2022
Level
Learning Resource Types
theaters
Lecture Videos
notes
Lecture Notes
assignment
Problem Sets
assignment_turned_in
Programming Assignments with Examples
Readings
Recitation Notes