CS 2000 - Fall 2026.
[Home]
Welcome to CS 2000! 9/16/2026
The Story of Python and how it took over the world | Python: The Documentary. Key points: mostly a bunch of nerdy white guys (now there are PyLadies
but no MeToo's unlike GNU and Linux),
Guido is actually pretty chill which is reflected in Python itself,
civil war over Python 2 vs 3, bitterness over the walrus operator.
Robert Kahn.
Python: Trailer from Socratica
Python: Hello World from Socratica
Python: Strings from Socratica [Note: bad link in Strings lecture notes.]
Python: lists from Socratica.
Python: Numbers from Socratica
Python: lambda expressions from Socratica
Python: list comprehensions from Socratica
Logical problem of the day
There are only 10 types of people in the world: those who understand X
and those who don't.
Solve for X.
https://pollev.com/slade
You may also download the app to your phone. Use the "slade" poll id.
Canvas Quiz of the Day (need daily password)
Most days, there will be a simple canvas quiz related to the lecture.
You need a password to activate the quiz, which I will provide in class.
These quizzes will count toward your class participation grade.
The quiz is available only during class.
Click for today's quiz.
Note: the collaboration quiz is separate. It coincides with the first homework assignment.
Lecture 4: Python.
Administrivia
I have office hours Wednesdays from 4 to 6 pm, on zoom, id 459 434 2854.
I will be available for lunch with students on Mondays at 1pm in the Morse College
dining hall.
TA office hours are found at
Ed Discussions on Canvas.
Epigrams in Programming, Alan Perlis.
Homework assignments:
[Assignments]. hw2 is now
available. See hw0a.pyc and hw1a.pyc.
The name of your homework file submitted to gradescope must be exactly the same as the
assignment file, e.g., hw0.py, hw1.py, hw2.py. Otherwise, zippo.
Announcements
Poorvu STEM Navigators Program. Advice on internship interviews, talking to professors, usw.
Yale Digital Ethics Center
You may have seen headlines about the coming AI apocalypse (FOBE). You can
help save the world by working at the DEC.
See McCane Student Fellows Deadline: October 19th.
Yale Information Society Project See this week's events.
Let us know if you have an upcoming event you would like to
share with the class.
Getting to know Python
Lists.html (jupyter) Python
Recursion.html (jupyter)
recursion.py
Listcomp.html (jupyter) List Comprehensions
listcomp.py
review hw1.
Sorting.html (jupyter) Python - Sorting
DictFiles.html (jupyter) Python - Dicts and FIles
Everything is bits!
Music and Computation, discusses
the spectrum of binary encoding. It will be on the first midterm exam, except for the music part.
Getting to know UNIX
UNIX Introduction Principle 2. (Review os module UNIX commands.)
Sample UNIX exam question. Specify the XXXX commands.
[Home]