Absolute beginner9 lessons~12 h

Python: From Zero to a Working Project

Assumes you know nothing about programming. You start by printing one line of text, and nine lessons later you have a command-line expense tracker that stores data, adds it up, and still has your records after you close it. Every lesson ends with something you run yourself, and the AI tutor is one click away whenever you're stuck.

Module 01

Module 1 · Getting the Computer to Do Your Work

Printing, variables, input and output, data types — the ground floor under every programming language.

  1. Your First Line of Code: printPut text on the screen, and learn why a pair of quotes changes the meaning of everything inside it.
  2. Variables: Labels on BoxesThe equals sign is not equality — it is an order to store something. Get that one idea and the rest follows.
  3. Input and Types: Text and Numbers Are Different Thingsinput always hands back a string. That single fact is the first real wall beginners hit, so this lesson takes it apart.
Module 02

Module 2 · Choosing and Repeating

if, for, while, lists, dictionaries — the point where your programs start having actual logic.

  1. if / elif / else: Letting the Program DecideIn Python, indentation is grammar, not formatting.
  2. for and while: Handing Repetition to the MachineWhy range stops one short, the accumulator pattern, and how to avoid an infinite loop.
  3. Lists and Dictionaries: Holding a Pile of ThingsIndexes start at 0, slices stop one short, and dictionaries look things up by name.
Module 03

Module 3 · Functions, Files, and a Real Project

Organize your code, make data outlive the program, and put it all together into a tool you would actually use.

  1. Functions: Packaging a Skillreturn and print are two different jobs, and variables born inside a function stay there.
  2. Files and Errors: Making Data Staywith open, JSON, reading a traceback, and try/except.
  3. Mini Project: A Command-Line Expense TrackerDictionaries, lists, functions, files, and JSON all at once, in something you can genuinely use.
Ad slot (AdSense not configured; ads appear here in production)