Python Programming for K-12
A fun, hands-on introduction to Python programming designed for students in grades 6-12. Start from zero and build real projects — text adventures, math tools, and data explorers. Every lesson includes interactive coding exercises so you learn by doing, not just reading.
FREE
Course Content
chevron_right
Getting Started with Python
4 lessons
What is Python?
+15 XP
Printing Multiple Lines
+15 XP
Comments — Notes for Humans
+15 XP
Module 1 Quiz: Python Basics
+15 XP
chevron_right
Variables & Data Types
4 lessons
Creating Variables
+15 XP
Strings — Working with Text
+15 XP
Numbers & Type Conversion
+15 XP
Module 2 Quiz: Variables & Data Types
+15 XP
chevron_right
Control Flow
5 lessons
If Statements — Making Decisions
+15 XP
If, Elif, Else — Multiple Paths
+15 XP
While Loops — Repeating Actions
+15 XP
For Loops — Looping Through Sequences
+15 XP
Module 3 Quiz: Control Flow
+15 XP
chevron_right
Functions
4 lessons
Defining & Calling Functions
+15 XP
Parameters & Arguments
+15 XP
Return Values
+15 XP
Module 4 Quiz: Functions
+15 XP
chevron_right
Lists & Loops
5 lessons
Creating Lists & Indexing
+15 XP
Slicing Lists
+15 XP
List Methods
+15 XP
Loops with Lists
+15 XP
Module 5 Quiz: Lists & Loops
+15 XP
chevron_right
Strings & Dictionaries
4 lessons
String Methods
+15 XP
F-Strings — Modern String Formatting
+15 XP
Dictionaries — Key-Value Pairs
+15 XP
Module 6 Quiz: Strings & Dictionaries
+15 XP
chevron_right
Math with Python
4 lessons
Arithmetic & the Math Module
+15 XP
Area & Perimeter Calculators
+15 XP
Simple Statistics
+15 XP
Math in the Real World
+10 XP
chevron_right
Text Adventures
4 lessons
Input — Talking to the User
+15 XP
Building a Text Game
+15 XP
Random Module — Adding Surprises
+15 XP
Designing Interactive Experiences
+10 XP
chevron_right
Data & Patterns
4 lessons
Working with Data Collections
+15 XP
Sorting & Filtering
+15 XP
Finding Patterns
+15 XP
Module 9 Quiz: Data & Patterns
+15 XP