Get YouTube subscribers that watch and like your videos
Get Free YouTube Subscribers, Views and Likes

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

Follow
MIT OpenCourseWare

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell

View the complete course: https://ocw.mit.edu/courses/6100lin...
YouTube Playlist:    • MIT 6.100L Introduction to CS and Pro...  

This lecture explains iteration in simple programs like guessandcheck, binaries, and fractions in Python. Loops can iterate over any sequence of values including a range for numbers or a string. Guessandcheck 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 BYNCSA
More information at https://ocw.mit.edu/terms'>https://ocw.mit.edu/terms
More courses at https://ocw.mit.edu
Support OCW at http://ow.ly/a1If50zVRlQ

We encourage constructive comments and discussion on OCW’s YouTube and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at https://ocw.mit.edu/comments.

posted by Witanowoqu