Lecture or video

Lecture 2: Strings, Input/Output, and Branching

This lecture discusses the core elements of programs: strings, input/output, f-strings, operators, branching, and indentation. Big idea: Debug early, debug often. Write a little and test a little. Don’t write a complete program at once. It introduces too many errors. Use the Python Tutor to step through code when…

MIT OpenCourseWare

Loads media from the original provider.

Official media file · MP4 prefix verified 2026-11-20.

Provider-stated course level · Undergraduate

MIT OpenCourseWare · Introduction to CS and Programming using Python · Provider terms

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022 · item 2

Watch at source ↗

From Introduction to CS and Programming using Python

Computer Science

A successful media check records access to the start of a file. Full playback was not tested.

Inspect provider metadata

Add to a playlist