Beginner Programming

Python Programming for K-12

By admin

play_lesson 38 lessons
schedule 680 min
bolt 560 XP
group 1 enrolled

About This Course

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.
python programming coding K-12 beginner

Curriculum

1

Getting Started with Python

Welcome to Python! In this module you will write your very first lines of code. You will learn how to talk to the computer using print(), leave helpful notes with comments, and build your first complete program.

4 lessons expand_more
code
What is Python? Coding Exercise 20 min 15 XP
code
Printing Multiple Lines Coding Exercise 20 min 15 XP
code
Comments — Notes for Humans Coding Exercise 20 min 15 XP
quiz
Module 1 Quiz: Python Basics Quiz 10 min 15 XP
2

Variables & Data Types

Variables are like labeled boxes that store information. In this module you will learn how to create variables, work with text (strings) and numbers (integers and floats), and convert between different data types.

4 lessons expand_more
code
Creating Variables Coding Exercise 20 min 15 XP
code
Strings — Working with Text Coding Exercise 20 min 15 XP
code
Numbers & Type Conversion Coding Exercise 20 min 15 XP
quiz
Module 2 Quiz: Variables & Data Types Quiz 10 min 15 XP
3

Control Flow

Make your programs smart! Learn how to make decisions with if/elif/else, compare values, combine conditions with logical operators, and repeat actions with while and for loops.

5 lessons expand_more
code
If Statements — Making Decisions Coding Exercise 20 min 15 XP
code
If, Elif, Else — Multiple Paths Coding Exercise 20 min 15 XP
code
While Loops — Repeating Actions Coding Exercise 20 min 15 XP
code
For Loops — Looping Through Sequences Coding Exercise 20 min 15 XP
quiz
Module 3 Quiz: Control Flow Quiz 10 min 15 XP
4

Functions

Functions let you wrap up reusable chunks of code and call them whenever you need. Learn how to define functions, pass in values, return results, and understand variable scope.

4 lessons expand_more
code
Defining & Calling Functions Coding Exercise 20 min 15 XP
code
Parameters & Arguments Coding Exercise 20 min 15 XP
code
Return Values Coding Exercise 20 min 15 XP
quiz
Module 4 Quiz: Functions Quiz 10 min 15 XP
5

Lists & Loops

Lists let you store collections of items. Learn how to create lists, access items by index, slice them, use powerful list methods, and combine lists with loops for maximum power.

5 lessons expand_more
code
Creating Lists & Indexing Coding Exercise 20 min 15 XP
code
Slicing Lists Coding Exercise 20 min 15 XP
code
List Methods Coding Exercise 20 min 15 XP
code
Loops with Lists Coding Exercise 20 min 15 XP
quiz
Module 5 Quiz: Lists & Loops Quiz 10 min 15 XP
6

Strings & Dictionaries

Master text manipulation with powerful string methods and f-strings, then learn dictionaries — Python's way of storing data as key-value pairs, like a real-world dictionary.

4 lessons expand_more
code
String Methods Coding Exercise 20 min 15 XP
code
F-Strings — Modern String Formatting Coding Exercise 20 min 15 XP
code
Dictionaries — Key-Value Pairs Coding Exercise 20 min 15 XP
quiz
Module 6 Quiz: Strings & Dictionaries Quiz 10 min 15 XP
7

Math with Python

Python is a fantastic calculator! Build area and perimeter calculators, explore the math module, and create simple statistics tools. Perfect for connecting math class to real programming.

4 lessons expand_more
code
Arithmetic & the Math Module Coding Exercise 20 min 15 XP
code
Area & Perimeter Calculators Coding Exercise 20 min 15 XP
code
Simple Statistics Coding Exercise 20 min 15 XP
article
Math in the Real World Text/Article 15 min 10 XP
8

Text Adventures

Build your own interactive text adventure game! Learn to use input() for player choices, the random module for surprises, and menus to create branching storylines.

4 lessons expand_more
code
Input — Talking to the User Coding Exercise 20 min 15 XP
code
Building a Text Game Coding Exercise 20 min 15 XP
code
Random Module — Adding Surprises Coding Exercise 20 min 15 XP
article
Designing Interactive Experiences Text/Article 15 min 10 XP
9

Data & Patterns

Work with data like a real programmer! Learn to process collections, sort and filter information, discover patterns, and build a mini-project that ties everything together.

4 lessons expand_more
code
Working with Data Collections Coding Exercise 20 min 15 XP
code
Sorting & Filtering Coding Exercise 20 min 15 XP
code
Finding Patterns Coding Exercise 20 min 15 XP
quiz
Module 9 Quiz: Data & Patterns Quiz 10 min 15 XP