Programming
Python for Beginners: Code Quest
FreeLearn Python by doing — run real code in your browser, one bite-sized step at a time.
About this course
Learn Python by doing — run real code in your browser, one bite-sized step at a time.
What you'll learn
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
Course modules
11 sections · 29 lessonsGetting Started
Welcome to Code Quest — learn how the course works and run your first Python, right in the browser.
4 lessons
Getting Started
Welcome to Code Quest — learn how the course works and run your first Python, right in the browser.
- 1.1Welcome to Code Quest
- 1.2Your First Line of Code
- 1.3Your First Challenge
- 1.4Coding Beyond the Browser (optional)
Introduction
Show text, write comments, and do math — the building blocks of every program.
4 lessons
Introduction
Show text, write comments, and do math — the building blocks of every program.
- 2.1Printing Text
- 2.2Comments
- 2.3Doing Math
- 2.4Reading Errors (Debugging)
Variables & Data Types
Store data in variables, know your types, and format text cleanly.
4 lessons
Variables & Data Types
Store data in variables, know your types, and format text cleanly.
- 3.1Variables
- 3.2Data Types
- 3.3F-strings
- 3.4Working with Text
Input & Output
Read from the user and shape your output. (Input examples are shown, not run — try the code cards elsewhere.)
2 lessons
Input & Output
Read from the user and shape your output. (Input examples are shown, not run — try the code cards elsewhere.)
- 4.1Talking to the User
- 4.2Shaping Output
Conditionals
Teach your program to make decisions with if, elif, and else.
3 lessons
Conditionals
Teach your program to make decisions with if, elif, and else.
- 5.1Making Decisions
- 5.2Many Paths
- 5.3Combining Conditions
Loops
Repeat work without rewriting it — for loops, while loops, and running totals.
3 lessons
Loops
Repeat work without rewriting it — for loops, while loops, and running totals.
- 6.1for Loops
- 6.2while Loops
- 6.3Totals with Loops
Lists & Strings
Store many values in a list and process them with loops.
2 lessons
Lists & Strings
Store many values in a list and process them with loops.
- 7.1Lists
- 7.2Looping Lists
Functions
Package logic into reusable, named tools.
2 lessons
Functions
Package logic into reusable, named tools.
- 8.1Defining Functions
- 8.2Return Values
Dictionaries & Data
Store labeled data with key–value pairs.
2 lessons
Dictionaries & Data
Store labeled data with key–value pairs.
- 9.1Key–Value Pairs
- 9.2Looping Dictionaries
Randomness & Games
Add surprise with the random module — the spark behind games.
1 lesson
Randomness & Games
Add surprise with the random module — the spark behind games.
- 10.1Randomness
Capstone
Combine everything you learned into real programs.
2 lessons
Capstone
Combine everything you learned into real programs.
- 11.1Putting It Together
- 11.2What's Next