a trial — your progress is kept in this browser only

Get code to run at all

Run a file you wrote, in an environment you made, and find out which Python ran it. A Mac often has several, and nothing on the screen says which one answered.

This page shows the session as it looks before you start. The trial keeps your progress in this browser: open a part and it picks up where you left it, and the board reads the same record.

Why this one is hereThis session gets a Python file running in your own terminal. Before anything else in the course can run, you need to know which Python runs it: python3 is a name the terminal looks up, not one fixed program, and a Mac often has more than one.

This page cannot see your machine, so nothing here is measured. The setup check runs on your own computer, where the course is installed.

Read this first45 min · the material itself, not my summary of it
Missing Semester, Lecture 1: The Shell — “Using the shell” and “Navigating in the shell” the prompt, running a program, how $PATH and which find it, and cd and pwd30 min
Python tutorial, “Virtual Environments and Packages” — sections 12.1 and 12.2 what an environment is, how to make one and switch it on, and which Python it gets15 min
This session has three parts
1Run a file, and find out which Python ran itthe lab · below
2Talk through someone else’s codeinterview · 20 min
3No-help check15 min · at the end, this session only

Normally this check comes first and gates the session. Session 1 is the exception: nothing has been studied yet.

The lab · three things, stop anywhere
Where this comes from

Authored here for your own machine. The readings above are the material. Checked 2026-11-09.

AI may explain, never write or debug.nothing to install but Python itselfstuck 15 min is normal
1
Run a file you wrote

In ~/cs-core, make hello.py holding one line: print("hello"). print shows whatever is in its brackets. Run it.

Uses: Missing Semester, Lecture 1: The Shell — “Using the shell” and “Navigating in the shell” · the reference card on this page

2
Find the python3 your shell runs

Run which python3, then which -a python3. The first names the one your shell (the program in Terminal that reads your commands) runs; the second lists every one it can find, in the order it looks.

Uses: Missing Semester, Lecture 1: The Shell — “Using the shell” and “Navigating in the shell” · the reference card on this page

3
Make an environment, and look inside

Make an environment in this folder and switch it on. The tutorial writes python; on a Mac, outside an environment, that name may be missing or may point to a different Python, so type python3. Then run which python3 again, and cat .venv/pyvenv.cfg, a small file inside the environment.

Uses: Python tutorial, “Virtual Environments and Packages” — sections 12.1 and 12.2 · the reference card on this page

BeginIt opens with a question.

No clock on this card. The session is done when you can do the thing, whether that took forty minutes or three sittings.

Every written session can be opened from Curriculum: an earlier one to go over again, a later one to read ahead.