6.100L Introduction to CS and Programming Using Python
6.100L Introduction to CS and Programming Using Python (Fall 2022, MIT OCW). Instructor: Dr. Ana Bell. This subject is aimed at students with little to no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems. It also aims to help students, regardless of their major, feel justifiably confident in their ability to write simple programs that allow them to accomplish useful goals. The class will use the Python 3 programming language.
(from ocw.mit.edu)
Lecture 03 - Iteration
An introduction to control flow and iteration through loops. Looping mechanisms include and for . Lots of syntax today, be sure to get lots of practice! loops loop as long as a condition is true and you need to make sure you don't enter an infinite loop. loops can loop over ranges of numbers and elements of a string.