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

  Рет қаралды 11,515

MIT OpenCourseWare

MIT OpenCourseWare

Ай бұрын

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell
View the complete course: ocw.mit.edu/courses/6-100l-in...
KZbin Playlist: • MIT 6.100L Introductio...
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
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu
Support OCW at ow.ly/a1If50zVRlQ
We encourage constructive comments and discussion on OCW’s KZbin and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Пікірлер: 13
@tmo314
@tmo314 Күн бұрын
Chapters: 00:00 - Intro 01:18 - Breaks 10:55 - String Loops 32:46 - Guess n Check 1:04:23 - Binary
@carsonjamesiv2512
@carsonjamesiv2512 23 күн бұрын
GOOD!
@denersei
@denersei 4 күн бұрын
fabuloso
@nickolaymikhailov9826
@nickolaymikhailov9826 8 күн бұрын
num is not defined in the last example, is it?
@carlosufpe
@carlosufpe 3 күн бұрын
num = 1507
@harshshukla5192
@harshshukla5192 Ай бұрын
Now ending day 2 of python
@andiuptown1711
@andiuptown1711 17 күн бұрын
Where are you now?
@ashutosh77577
@ashutosh77577 8 күн бұрын
Aur bhai kahan pe padh rhe ho aap ?
@harshshukla12
@harshshukla12 7 күн бұрын
​@@andiuptown1711 I actually dropped it in between, because on Scaler, these courses are available with great practice problem too. And progress traking and certificate for free.
@shamrockshane
@shamrockshane 24 күн бұрын
These youtryit's and at-home exercises are TOO HARD
@andiuptown1711
@andiuptown1711 17 күн бұрын
No they’re not 😂
@blackmvs
@blackmvs 4 күн бұрын
They are easy tf do you mean🤧
@blackmvs
@blackmvs 4 күн бұрын
They are easy
Lecture 5: Floats and Approximation Methods
47:11
MIT OpenCourseWare
Рет қаралды 7 М.
Lecture 1: Introduction to CS and Programming Using Python
1:03:30
MIT OpenCourseWare
Рет қаралды 314 М.
Useful Gadget for Smart Parents 🌟
00:29
Meow-some! Reacts
Рет қаралды 10 МЛН
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 51 МЛН
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Рет қаралды 10 МЛН
where is the ball to play this?😳⚽
00:13
LOL
Рет қаралды 13 МЛН
The Man Who Revolutionized Computer Science With Math
7:50
Quanta Magazine
Рет қаралды 2,7 МЛН
MIT Has Predicted that Society Will Collapse in 2040 | Economics Explained
18:47
Economics Explained
Рет қаралды 13 МЛН
All 39 Python Keywords Explained
34:08
Indently
Рет қаралды 68 М.
Photons and the loss of determinism
17:21
MIT OpenCourseWare
Рет қаралды 935 М.
Lecture 3: Iteration
46:42
MIT OpenCourseWare
Рет қаралды 18 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 455 М.
Unlimited Fresh Water: Can MIT's Breakthrough Save Us?
15:17
Useful Gadget for Smart Parents 🌟
00:29
Meow-some! Reacts
Рет қаралды 10 МЛН