1 · Choose your activity
Choose Physics, Geometry, Algebra II, or Trigonometry, then select the level of coding independence. Begin with Level 1 if Python is new.
1. Arrange code cards (first half) → 2. Type or paste supported code (second half) → 3. Write your own program (independent project). Each activity includes notes, quick checks, predictions, testing and a lab record.
How this page works
You do not need to remember Python syntax. You make the mathematical decisions; the code cards supply the commands.
- Read and predict. Use the notes, examples, and quick checks. Write down what you expect your model to produce.
- Choose code cards. Click Add on cards with the operations you need. Cards marked STARTER make a first working program; extras let you investigate further.
- Put them in order. Your program runs from top to bottom. Use the Up and Down buttons; put definitions before cards that use them.
- Run your model. Click the blue Run my program button beside your selected cards. The site checks the order first and explains what to change.
- Investigate and explain. Compare the answer to your prediction, add a TEST or GRAPH card, run again, and record evidence and a conclusion.
Mini-example: Imagine a calculator that multiplies speed by time. First add the card that sets speed = 20 and time = 3; next add the card that calculates distance = speed * time; last add print(distance). The answer would be 60. The order matters because Python must know the values before using them.
In the real activities, click each card's View Python link only if you want to see the commands. Focus first on what each card accomplishes.
Optional reference · Python words and examples
Open this when you need a reminder. You can complete the activity without memorizing these commands.
Open beginner vocabulary, Python translation, and error explanations
Computer science words
- Program
- An ordered set of instructions a computer follows.
- Variable
- A name that stores a number, point, vector, or other value.
- Function
- A reusable mathematical or scientific calculation.
- Input
- The information supplied to a program.
- Output
- The result a program displays.
- Test case
- A selected input used to check what a program does.
- Syntax
- The punctuation and spelling rules of a language. Code cards handle these for you.
- Debugging
- Finding why a program does not behave as intended and fixing it.
Read a tiny Python program
speed = 20 time = 3 distance = speed * time print(distance)
Translate to words: store 20 as speed, store 3 as time, multiply them, and display 60.
= stores a value* means multiply**2 means square# begins a commentprint(...) displays an answerdef starts a reusable function: and indentation group instructions4 · Run results and check your model
Press “Run my program” from the code cards above. Results appear here automatically.
Optional: view, edit, copy, or download the actual Python code
Shortcut Ctrl + Enter (or ⌘ + Enter). Code changes and your selected code cards save locally in this browser; no account is needed.
Your results will appear here. First, add and order code cards above, then press “Run my program”.
After your first run: compare the output to your prediction, then add a TEST or GRAPH card and try a second case.
Record evidence & conclusion ↓Assessment and teaching guidance
Assessment rubric for all nine investigations
| Category | Expectations | Points |
|---|---|---|
| Computational model | A correct mathematical model and an appropriate program: ordered cards in Stage 1, adapted code in Stage 2, independently authored code in Stage 3 | 10 |
| Verification & tests | Hand calculation or known result, contrasting cases, and appropriate handling of edge cases | 10 |
| Mathematical or scientific reasoning | Accurate interpretation with units, diagrams, or equations where appropriate | 10 |
| Evidence & reflection | Recorded outputs/graphs, clear conclusion, and an identified limitation of the model | 10 |
Total: 40 points. Students are not graded on memorizing Python syntax. Student deliverables: downloaded .py code, brief evidence table or screenshots, and written conclusions (exported from the page if desired). The automated check is formative and does not evaluate explanation quality. Teach students that examples support a conjecture but usually do not prove a universal identity.
Scaffolding progression: Stage 1 evaluates meaningful block selection and sequence. Stage 2 evaluates code assembly, revision and debugging in the editor. Stage 3 evaluates a working independently written solution that meets the published interface and testing requirements.