Lawfare Group → Knowledge Institute → Lawfare Academy
Computer Science and Artificial Intelligence
CS 101 — Programming Foundations with Python
Study programming foundations with python through six sequenced teaching units, original explanations, worked code, changed-condition exercises, explained checks and full assigned primary-source study.
ABOUT THIS COURSE
Your preparation and study plan
No prior programming. Basic arithmetic; access to a computer with Python 3.
Six teaching units across sixteen suggested weeks; approximately 8–12 hours weekly including complete assigned readings, implementation, problem solving and review. Adjust for prerequisites and project choices.
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
Sources and assigned readings
Unit readings appear in each lesson’s Readings stage. The linked sources below support the full course.
- 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
- Runnable implementation laboratories
- Primary documentation for Atomic export and failure recovery