Stage 1
Stage 1: Foundation
Goal: Write small, real Python programs on your own: calculators, menus, shopping carts, file-based tools. Time: about 2 weeks at ~1 hour a day (~14โ16 hours including the project) ยท Level: absolute beginner, no coding experience needed
Parts in this stage
Do them in order. Each part builds on the ones before it. When a later topic shows up early, it is marked with a note like (Part 5).
| Part | Topic | You will build | Time |
|---|---|---|---|
| 1 | How Python runs | Your first program and a welcome banner | ~1 h |
| 2 | Language fundamentals | Restaurant bill splitter | ~1 h |
| 3 | Control flow | ATM menu with 3 PIN attempts | ~1 h |
| 4 | Data structures | Shopping cart | ~1 h |
| 5 | Functions | Discount calculator | ~1 h |
| 6 | Errors and exceptions | Safe input and bank withdrawal | ~1 h |
| 7 | Modules and environment | OTP generator, due-date calculator | ~1 h |
| 8 | Files, text and data formats | To-do list (JSON), marks report (CSV), log parser | ~1 h |
| ๐ | Project: Expense tracker | A complete command-line app using Parts 2โ8 | ~6โ8 h |
How every part is organised
part-NN-topic/
โโโ README.md โ 1. read the lesson
โโโ examples/ โ 2. run the example programs
โโโ exercises.md โ 3. solve the practice questions yourself
โโโ solutions/ โ 4. only then compare with the solution
How to study each part
- Read the part's
README.md. Type the small snippets yourself; don't copy-paste. - Run each file in
examples/, then change something and run it again. - Solve
exercises.mdin order: ๐ข easy โ ๐ก medium โ ๐ด challenge. - Check your answer against
solutions/only after you have tried. - Tick the โ checklist at the end of the part. If you can't tick an item, re-read that section.
๐ก Already know another language? Skim the beginner text and look for the ๐ Going deeper notes. They cover how Python works underneath, edge cases and best practices.
How to run the code
From the repo folder:
python3 stage-1-foundation/part-02-language-fundamentals/examples/06_bill_splitter.py
On Windows, use python (or py) instead of python3. Everything in Stage 1 uses only the standard library, so there's nothing to install apart from Python 3.13+.
Stage 1 checklist
- Parts 1โ8 done, with every exercise attempted
- Expense tracker project built and working
- (Optional) Saved your practice code on GitHub (Git is covered in Stage 2, Part 11)
- (Optional) Took a PCEP practice test (the Python Institute's entry-level Python certificate)
Next: ๐ก Stage 2: Intermediate (OOP, decorators, generators, testing, APIs)