Python, made visible
Practice Python. When it fails, watch it run.
Solve short problems in the browser. If a test fails, step through your code line by line and see the values change, so you know why.
Real execution in Practice. Fixture-backed preview here.
two_sum.pytwo_sum([3, 2, 4], 6)def two_sum(nums, target): for i in range(len(nums)): for j in range(len(nums)): if nums[i] + nums[j] == target: return [i, j] return []Start with a real attempt
This short function comes from the committed Two Sum demonstration. Run the recorded test to see where its state goes wrong.
Write stage. The recorded Two Sum example is ready to run.
A result shows the failure. A trace reveals the cause.
TraceCode connects the active line, the values in memory and the learner’s own reasoning. The error stops being mysterious and becomes a state you can inspect.
if nums[i] + nums[j] == target:From first attempt to a better mental model.
Each stage keeps the learner in control while exposing only the information needed for the next decision.
- 01
Write
Work through a focused Python problem with visible examples and a real editor.
- 02
Run
Execute against concrete tests and see the exact expected and actual results.
- 03
Explore
Move through the trace line by line as variables, loops and pointers change.
- 04
Improve
Use evidence-based guidance, revise intentionally and test the new mental model.
Choose your next trace
Problems
A growing library of focused Python problems, each ready to run, replay and understand.
| # | Title | Topics | Difficulty | Status |
|---|---|---|---|---|
| 1 | Two Sum | Arrays, Loops | Easy | Free to try |
| 2 | Contains Duplicate | Arrays, Hashing | Easy | Sign in to unlock |
| 3 | Valid Anagram | Strings, Hashing | Easy | Sign in to unlock |
| 4 | Move Zeroes | Arrays, Two-pointers | Medium | Sign in to unlock |
| 5 | Binary Search | Arrays, Binary-search | Easy | Sign in to unlock |
| 6 | Valid Parentheses | Strings, Stacks | Hard | Sign in to unlock |
Sign in to track your progress and unlock every problem.
Your code is already telling a story. Learn to read it.
Start with one small problem and see every state change that leads to the result.