Loading...
Independent spaceGeneral availability
Programming fundamentals

Trace it.
Break it.
Build it.

A separate learning space for core coding habits: state, control flow, functions, data structures, debugging, and complexity. The goal is not syntax trivia. The goal is reading programs like systems.

Progress
100%
6 lessons ready of 6
Content tree
1 folders
8 files in content/programming-fundamentals
Selected file
Variables and State
lessons/variables.md
Learning path
General availability

The core programming track is live now. It stays outside IITM content, but uses the same shell, reader, and workspace behavior.

LiveBeginner to advanced
Interactive trace lab

Accumulator Loop

Streak 0
Pseudo Python
Read top to bottom
total = 0
for n in [2, 4, 6]:
    total = total + n
print(total)

What value prints at the end?

State table
Step 01 · Start
total = 0
Step 02 · n = 2
total = 2
Step 03 · n = 4
total = 6
Step 04 · n = 6
total = 12
Prediction mode

Choose the final output, then compare your mental trace against the state table.

0 attempts · 4 cases
Foundational curriculum

Lessons

View
Active lesson L01

Variables and State

22 min

Variables and State

Variables are labels attached to values. The label can point at a new value later, which means a program has state that changes over time.

Core idea

An assignment like score = score + 1 should be read in two phases:
  • Read the current value of score.
  • Store the new value back under the same name.

Trace habit

Create a tiny table:
StepCodeState
1score = 0score: 0
2score = score + 1score: 1
This table prevents a common beginner mistake: thinking both sides of = update at the same time.

Practice

Trace this mentally before running it:
python
level = 2
level = level + 3
level = level * 2
print(level)
The final value is 10.
Tools

Trace Table

Step through code and predict the final state before revealing the answer.

Branch Lab

Practice reading conditions and loop exits with small deterministic cases.

Debug Log

Learn to turn bugs into reproducible notes instead of vague frustration.

Archive

Trace Sheets

Printable state tables for variables, loops, functions, and list operations.

Pattern Cards

Small reusable patterns: accumulator, guard clause, lookup map, and queue.

Debug Playbooks

Reproduction checklists and minimal-case templates for future coding work.

Document Outline
Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.