Activity 1: The Calculation Lab (Operators)
Description: Students write and predict simple expressions using arithmetic operators and string concatenation, focusing on edge cases (e.g., string int vs int int) before running code.
AI Support: Students ask AI for operator-precedence practice problems and brief explanations for results (e.g., why 10 / 3 returns a float).
Outcome: Students can manipulate data mathematically and combine text strings effectively.
Model Prompt:
"Create 5 simple coding math problems using basic operators ( , -, *, /, %).
Include one 'trick' question involving string concatenation (e.g., adding "5" "5").
Do not give me the answers yet. Let me guess the output first, then I will ask you to check my work and explain the logic."
Activity 2: Fix-It
Description: Students use AI to generate 5 incorrect Python expressions, each paired with a target output. Their task is to edit each expression so that it produces the correct result. They may need to change operator order with parentheses, use % or //, or apply type conversion such as str() or int()..
Example: Target output: 20. Wrong expression: 2 3 * 4. Fixed expression: (2 3) * 4
AI Support: Students ask AI to create simple “Fix-It” challenges without giving the answers. After students submit their corrected expressions, they can ask AI to check their work and explain the logic for each solution.
Outcome: Students can identify and correct mistakes involving operators, precedence, division, modulo, and type conversion.
Outcome: Students can correct operator/precedence/type mistakes to get the intended result.
Model Prompt: “Create 5 beginner-friendly Python Fix-It problems. For each one, show: the target output, one incorrect Python expression. My task is to change the expression so it matches the target output.
Use only simple beginner topics such as basic operators, parentheses, %, //, strings, and simple type conversion.
Do not give the answers yet. After I send my corrected expressions, check them and explain the logic clearly.”