All topics

Python 1: first programs

Learners read, predict, and write short Python programs that take input, store values, and print results.

Outline

Who it is for: Teens and adults who finished the Thinking in Steps modules, or who have never written text code.

Python is free, and it runs on an ordinary laptop. Learners can use it for school work, record keeping, and small tools for a business. At the end, the learner can write a short program that takes input, calculates a result, and prints it clearly.

Reading and predicting code comes before writing it. Every lesson asks “what will this print?” before anyone presses Run, and paper trace tables keep learners busy while they wait for a laptop.

AI policy: Builders may use AI only as a tutor (explain or give a hint, never the answer), with the teacher present, and only after they have shown the skill without it. Pioneers and adults may use AI after the checkpoint, and must test any code and explain it in their own words. The checkpoint is done without AI.

Planned lessons

  1. Running a first program in Thonny
  2. print and comments: predict the output, then run
  3. Reading error messages and fixing them
  4. Variables: names that hold a value
  5. Tracing a program by hand with a trace table
  6. Getting input from the user
  7. Numbers and text: arithmetic and joining text
  8. Converting between types: int, float, and str
  9. Testing a program with inputs you choose
  10. A shop receipt calculator

Teach it as

One sessionPredict what three short programs print, run them in Thonny, fix one error, then write a program that asks for a name and prints a greeting, in one 2 hour class.
One dayMorning: running programs, print, reading error messages, and variables with a trace table. Afternoon: input, arithmetic, type conversion, and a small receipt program.
One weekDay 1: running programs, print, and reading error messages. Day 2: variables and tracing them on paper. Day 3: input, arithmetic, and joining text. Day 4: converting types and testing with chosen inputs. Day 5 (Build and Show): checkpoint without AI (trace and fix on paper), then each learner shows and explains a receipt calculator.

Know this first

Standards this follows

Videos to download

No videos listed yet.