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

  1. Read the part's README.md. Type the small snippets yourself; don't copy-paste.
  2. Run each file in examples/, then change something and run it again.
  3. Solve exercises.md in order: ๐ŸŸข easy โ†’ ๐ŸŸก medium โ†’ ๐Ÿ”ด challenge.
  4. Check your answer against solutions/ only after you have tried.
  5. 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

Next: ๐ŸŸก Stage 2: Intermediate (OOP, decorators, generators, testing, APIs)

Search the guide