WELCH • TEACHING & COACHING
Cross-curricular coding laboratory

Python Modeling Studio

Start without coding experience, then grow into independent programming. First arrange real code blocks; next type or paste from a code reference; finally build your own physics or mathematics solver.

Live Python sandboxPhysics • Geometry • Algebra II • TrigonometryThree progressive activities per courseVocabulary + code bank + self-checks
START

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.

One course · Three levels of independence

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.

FIRST-TIME GUIDE

How this page works

You do not need to remember Python syntax. You make the mathematical decisions; the code cards supply the commands.

  1. Read and predict. Use the notes, examples, and quick checks. Write down what you expect your model to produce.
  2. 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.
  3. Put them in order. Your program runs from top to bottom. Use the Up and Down buttons; put definitions before cards that use them.
  4. 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.
  5. Investigate and explain. Compare the answer to your prediction, add a TEST or GRAPH card, run again, and record evidence and a conclusion.

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.

Python translation card= stores a value* means multiply**2 means square# begins a commentprint(...) displays an answerdef starts a reusable function: and indentation group instructions

4 · Run results and check your model

Press “Run my program” from the code cards above. Results appear here automatically.

Python engine loads when you press Run.
Optional: view, edit, copy, or download the actual Python code
Loading starter...Python 3

Shortcut Ctrl + Enter (or ⌘ + Enter). Code changes and your selected code cards save locally in this browser; no account is needed.

Output
Your results will appear here. First, add and order code cards above, then press “Run my program”.
This is genuine Python powered by Pyodide. The first run needs an internet connection. A long-running program is stopped after 12 seconds. For graded submissions, download your .py file.

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 ↓
Teacher note: Plan 1–2 blocks for Stage 1, 1–2 for Stage 2, and approximately 2 blocks for the independent project. Each stage deliberately reduces Python scaffolding. For Stage 3, grade the student’s self-written code, documented test cases, modeling decisions and scientific/mathematical explanation—not memorized syntax. The 3D vector project is adapted from the supplied vector inquiry.

Assessment and teaching guidance

Assessment rubric for all nine investigations

CategoryExpectationsPoints
Computational modelA correct mathematical model and an appropriate program: ordered cards in Stage 1, adapted code in Stage 2, independently authored code in Stage 310
Verification & testsHand calculation or known result, contrasting cases, and appropriate handling of edge cases10
Mathematical or scientific reasoningAccurate interpretation with units, diagrams, or equations where appropriate10
Evidence & reflectionRecorded outputs/graphs, clear conclusion, and an identified limitation of the model10

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.