MIT OpenCourseWare
Browse materials
Introduction to Electrical Engineering and Computer Science I — Python Tutorial
Art: Palmer, Edward, 1803-1872, Figures 113-123. Plate Electrical Machines, 1840 · Public domain
About this course
Source: MIT OpenCourseWare 6.01SC Introduction to Electrical Engineering and Computer Science I, Spring 2011, Prof. Leslie Kaelbling, Prof. Jacob White, Prof. Harold Abelson, Prof. Dennis Freeman, Prof. Tomás Lozano-Pérez, Prof. Isaac Chuang — original course page on ocw.mit.edu ↗. License: CC BY-NC-SA 4.0. Study order: none is claimed; materials are grouped by MIT's own sections. Taken from MIT's published course files, downloaded from ocw.mit.edu on September 23, 2026. How RedLectern is built.
- Instructors
- Prof. Leslie Kaelbling, Prof. Jacob White, Prof. Harold Abelson, Prof. Dennis Freeman, Prof. Tomás Lozano-Pérez, Prof. Isaac Chuang
- Term
- Spring 2011
- Level
- Undergraduate
- What's inside
- 53 other files
- Materials open
- MIT OCW
Materials by section
Grouped by section, as MIT organized them. Not sequenced or ordered.
Types, Values, Expressions; Variables and Binding
- 6.01 Python Notes, Section 1: Getting Used to Python Download
- Basic types Download
- Numeric expressions Download
- Relations and boolean expressions Download
- Mixed-type expressions Download
- Variable binding Download
Functions and Scope
10 files
Using if, else, and while
12 files
Quadratic Roots
Loops and List Comprehensions
16 files
- 6.01 Python Notes, Section 4: Lists Download
- 6.01 Python Notes, Section 5: Functional Style Download
- More expressions Download
- Ranger Download
- From point A to point B Download
- Distance from point to line Download
- Multiple times Download
- Every other Download
- Cat 6 Download
- Home on the range Download
- The mean of a list of numbers Download
- Standard deviation Download
- Dictionaries Download
- Slice of Pi Download
- Polly Download
- As close as necessary Download
Arrays as Lists of Lists
- What a bunch of zeros Download
- Setting an element of a vector Download
- A bigger bunch of zeros Download
- Setting an element of an array Download
- Add ’em up Download
