Programming
Learn Python by doing — run real code in your browser, one bite-sized step at a time.
Learn Python by doing — run real code in your browser, one bite-sized step at a time.
1. Getting Started 2. Introduction 3. Variables & Data Types 4. Input & Output 5. Conditionals 6. Loops 7. Lists & Strings 8. Functions 9. Dictionaries & Data 10. Randomness & Games 11. Capstone
Welcome to Code Quest — learn how the course works and run your first Python, right in the browser.
Show text, write comments, and do math — the building blocks of every program.
Store data in variables, know your types, and format text cleanly.
Read from the user and shape your output. (Input examples are shown, not run — try the code cards elsewhere.)
Teach your program to make decisions with if, elif, and else.
Repeat work without rewriting it — for loops, while loops, and running totals.
Store many values in a list and process them with loops.
Package logic into reusable, named tools.
Store labeled data with key–value pairs.
Add surprise with the random module — the spark behind games.
Combine everything you learned into real programs.