Video details loaded
HomeMIT 6.100L Introduction to CS and Programming using Python, Fall 2022Lecture 4: Loops over Strings, Guess-and-Check, and Binary

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

1:13:16

Up Next

Lecture 5: Floats and Approximation Methods

Continue

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