LECTURES A GRATIS GLOBAL SERVICE
⌕ SEARCH GRATIS GLOBAL ↗
LECTURES / COMPUTER SCIENCE
Strings, Input/Output, and Branching
SOURCE: YOUTUBE · NO YOUTUBE TRACKING UNTIL YOU PRESS PLAY · TROUBLE PLAYING? WATCH AT THE SOURCE ↗

Strings, Input/Output, and Branching

79 MIN · EN · STATUS: [ STREAMING ]
RATE THIS
MIT · Introduction to CS and Programming using Python · LECTURE 2

At a glance

MIT lecturer Ana Bell continues the introductory programming sequence 6.100L, Introduction to CS and Programming using Python, with a session on core building blocks of Python programs. She covers strings and string operations, input and output functions, f-strings for formatting output, comparison and logical operators, and branching with if statements, including how indentation determines program structure in Python. Bell repeatedly returns to a practical debugging philosophy: write small pieces of code, test them immediately, and avoid writing a complete program before checking any of it, since large untested blocks introduce too many simultaneous errors to trace. She also demonstrates Python Tutor as a tool for stepping through code line by line to see exactly how values change, useful when a program's behavior does not match expectations. The lecture runs just over an hour and continues directly from the course's first session on variables and expressions.

At a glance

Lecture facts

Runtime compared with the other 799 Computer Science lectures
Runtime1 h 19 m
Compared with Computer ScienceLonger than 76%
Link status✓ Working · checked yesterday
This series

Introduction to CS and Programming using Python

Every lecture in order, sized by its length.

  • Earlier lectures
  • This lecture
  • Still to come
Lecture 2 of 25 1 h 4 m before this · 26 h 30 m in total

More from this course

12 LECTURES
Introduction to CS and Programming Using Python: Lecture 1

Introduction to CS and Programming Using Python: Lecture 1

MIT · 64 MIN
Lecture 3: Iteration

Lecture 3: Iteration

MIT · 47 MIN
Lecture 4: Loops over Strings, Guess-and-Check, and Binary

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

MIT · 73 MIN
Lecture 5: Floats and Approximation Methods

Lecture 5: Floats and Approximation Methods

MIT · 47 MIN
Lecture 6: Bisection Search

Lecture 6: Bisection Search

MIT · 74 MIN
Decomposition, Abstraction, and Functions

Decomposition, Abstraction, and Functions

MIT · 46 MIN
Functions as Objects

Functions as Objects

MIT · 78 MIN
Lecture 9: Lambda Functions, Tuples, and Lists

Lecture 9: Lambda Functions, Tuples, and Lists

MIT · 45 MIN
Lecture 10: Lists and Mutability

Lecture 10: Lists and Mutability

MIT · 75 MIN
Lecture 11: Aliasing and Cloning

Lecture 11: Aliasing and Cloning

MIT · 46 MIN
Lecture 12: List Comprehension, Functions as Objects, Testing, and Debugging

Lecture 12: List Comprehension, Functions as Objects, Testing, and Debugging

MIT · 76 MIN
Exceptions and Assertions

Exceptions and Assertions

MIT · 43 MIN