Skip to content
AITroveRead. Build. Understand.

Exercises

Operation contracts, checked Python programs and connected learning resources.

Python programs operate on objects with explicit input, ownership and failure contracts.

Learning roadmap

This section contains 17 written lessons or quiz banks. Programs are verified on CPython 3.14.6. Standard-library lessons target 3.11+ syntax; lessons using data, web, machine-learning or testing packages state their tested dependencies separately. Framework programs use local test clients, not a deployed service. Read the stated limits before adapting a fixture into an application.

Validate before publication

Read the contract, run its program and inspect the failure case.

Failure before state replacement

Read the contract, run its program and inspect the failure case.

Independent window, interval and record answers

Read the contract, run its program and inspect the failure case.

Identity-aware reconciliation

Read the contract, run its program and inspect the failure case.

Clock and identity boundary exercises

Read the contract, run its program and inspect the failure case.

Feasibility before optimality

Read the contract, run its program and inspect the failure case.

Multiplicity and half-open ranges

Read the contract, run its program and inspect the failure case.

Merge, runs and dependency checks

Read the contract, run its program and inspect the failure case.

Stable ranking and half-open ranges

Read the contract, run its program and inspect the failure case.

Continue learning

Move between tutorial, collections, advanced material and practice using the subject tabs. The sidebar changes with each section; related examples keep one canonical lesson URL.

Curriculum

Read the contract, run its program and inspect the failure case.

  1. 1Python rollback exercise: reject a later failure without keeping earlier edits

Read the contract, run its program and inspect the failure case.

  1. 1Python reconciliation exercise: reject duplicate IDs before comparing ledgers

Read the contract, run its program and inspect the failure case.

  1. 1Python expiry exercise: separate pending, active and expired records at exact boundaries

Read the contract, run its program and inspect the failure case.

  1. 1Python assignment exercise: verify pair feasibility separately from optimality

Storage details