Lecture 4: Loops over Strings, Guess-and-Check, and Binary
Vložit
- čas přidán 10. 04. 2024
- 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...
CZcams 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 CZcams 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.
Chapters:
00:00 - Intro
01:18 - Breaks
10:55 - String Loops
32:46 - Guess n Check
1:04:23 - Binary
GOOD!
fabuloso
num is not defined in the last example, is it?
num = 1507
Now ending day 2 of python
Where are you now?
Aur bhai kahan pe padh rhe ho aap ?
@@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.
These youtryit's and at-home exercises are TOO HARD
No they’re not 😂
They are easy tf do you mean🤧
They are easy
No pain no gain