Your Cart
Loading

Intro Programming — Tracing & Debugging Activity Pack (30 activities, pseudocode + Python)

On Sale
$4.00
$4.00
Added to cart

I teach programming. The skill my students actually need in the first month isn't writing code — it's reading it: following a program one line at a time and knowing what every variable holds. That's what this pack drills.


30 original activities, six for each of the five topics every intro course teaches first:


- Variables & Assignment

- Conditionals

- Loops

- Functions

- Lists


Each topic has the same three kinds of practice:


- Trace the Code (2 per topic) — run the program on paper with a trace table, keeping every variable's value current.

- Find the Bug (2 per topic) — each program has exactly one planted bug. Students name the line, say what's wrong, and fix it. The bugs are the ones beginners really make: an = where == belongs, a counter that runs the wrong way, a function that never returns anything, an index one past the end of a list.

- Predict the Output (2 per topic) — write exactly what prints before anyone touches a keyboard.


The code is language-neutral pseudocode, with a real Python version wherever a class would type Python. One thing is flagged up front on the worksheet, because it causes real confusion: list positions start at 1 in the pseudocode here and at 0 in Python, and a few activities turn on that difference on purpose.


What's included:


- Student worksheets (PDF, ready to print)

- The same worksheets as an editable HTML source file — change the numbers and names and make a second version for a retake

- A full answer key (PDF + editable source) with a plain-language explanation for every activity, written so a substitute or a new teacher can lead the review


Every Python snippet was actually run before this was listed: the buggy versions fail the way the key says, and the fixed versions print what the key says.


Compare to: $2.67 on TpT for a set of 3 Python debugging challenges. This pack is 30 activities across five topics, with the answer key, for $4.

You will get a ZIP (204KB) file