Lawfare Group → Knowledge Institute → Lawfare Academy
Computer Science and Artificial Intelligence
CS 101 — Programming Foundations with Python
Programming foundations through original on-site instruction, worked code, explained practice and a cumulative reproducible application, with optional retained references.
Read the 8–10 minute Institute overview →
ABOUT THIS COURSE
Your preparation and study plan
No prior programming. Basic arithmetic; access to a computer with Python 3.
Six sequenced units; study at your own pace using original on-site teaching. Optional implementation and reference study can extend the time. No academic credit or observed practical competency is implied.
Follow each unit through Learn → Apply → Check → Readings. Assessments are optional; reading remains open.
What you’ll be able to do
- Explain and implement the core mechanisms of programming foundations with python.
- Trace programs and calculations and justify results with stated assumptions.
- Evaluate failure cases, test evidence and the limits of an implementation.
- Integrate the methods in an independently reproducible project.
ONE CONNECTED STUDY SEQUENCE
Your lessons, in order.
Values, names, types and a precise specification
Explain and trace the mechanisms in values, names, types and a precise specification.
Control flow, iteration and loop invariants
Explain and trace the mechanisms in control flow, iteration and loop invariants.
Functions, decomposition and collection design
Explain and trace the mechanisms in functions, decomposition and collection design.
Exceptions, files and validated boundaries
Explain and trace the mechanisms in exceptions, files and validated boundaries.
Tests, debugging and evidence of correctness
Explain and trace the mechanisms in tests, debugging and evidence of correctness.
Modules, reproducibility and an integrated estimator
Explain and trace the mechanisms in modules, reproducibility and an integrated estimator.
Optional assessment and practice
Optional sources and further reading
All required teaching and source summaries are on this site. External references are optional provenance and further reading.
- Harvard CS50 — Introduction to Programming with Python
- Python Software Foundation — Python Tutorial
- How to Think Like a Computer Scientist: Learning with Python 3 (RLE), Peter Wentworth, Jeffrey Elkner, Allen B. Downey and Chris Meyers; GFDL 1.3 or later
- Earlier shared implementation laboratories — defect comparison; current Python ledger source is the corrected companion
- Primary documentation for Atomic export and failure recovery
- Academy — complete application, source, integration tests and local deployment guide
- Original Academy — names, exact money, signed rounding and allocation
- Original Academy — corrected CSV parser, header counterexamples and failure tests
- Original Academy — loop invariants, termination, exact means and chunked reports
- Original Academy — Boolean laws, guards and input domains
- Original Academy — atomic CSV ingestion into the persistent service-company ledger