Who it is for: Learners who finished Python 1: first programs.
Real programs make choices and repeat tasks, such as checking a payment or counting stock. Learners who can write clear decisions and loops can automate simple tasks at work or at school. At the end, the learner can build a quiz or guessing game that checks input and keeps a running score.
Learners spend real time tracing and debugging, not only writing. These are the skills that people who lean on AI lose first, and they are what a programmer needs to judge any code.
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
- True and False, and comparison operators
- if and else: predict which branch runs
- elif for more than two choices
- and, or, and not
- Testing every branch with chosen inputs
- while loops and when they stop
- Tracing a loop by hand with a trace table
- for loops with range
- Counting, totals, and running sums
- Input checks: asking again until the answer is valid
- Debugging loops that never stop or stop too early
- A guessing game or quiz project
Teach it as
| One session | Trace a short if and while program on paper, then write a program that asks yes or no and repeats until the answer is valid, in one 2 hour class. |
|---|---|
| One day | Morning: True and False, comparisons, if, elif, and else, and testing each branch. Afternoon: while and for loops, running totals, and tracing a loop by hand. |
| One week | Day 1: True, False, comparisons, and if and else. Day 2: elif, and, or, not, and testing every branch. Day 3: while loops and tracing them. Day 4: for loops, totals, and input checks. Day 5 (Build and Show): checkpoint without AI (trace, predict, and fix a loop), then each pair shows a quiz or guessing game. |
Know this first
- Python 1: first programs
Standards this follows
- CS2023 Software Development Fundamentals (SDF): fundamental programming concepts
- OpenStax Introduction to Python Programming (CC BY 4.0) as reference
Videos to download
No videos listed yet.