Grades 4-12+

The Python with CodeX Digital Textbook

16 missions of scaffolded, standards-aligned Python curriculum - paired with the CodeX handheld device. Students create graphics, music, games, sensor projects, and IoT applications through hands-on challenges.

Get the CodeX Lab Kit

A Complete Python Curriculum - From First Line to Arcade Games

Python with CodeX is the gentlest introduction to real Python programming. CodeX is a versatile, handheld physical computing device that can be used to expose students to Python as early as 4th grade - but it's also perfect for middle school through high school students in CS, robotics, or CTE courses.

Across 16 missions, students progress from their very first line of code to building full arcade games - learning variables, loops, functions, lists, sensors, sound, and graphics along the way. Every concept is taught through a real project with a tangible result. This isn't a tutorial playlist - it's a carefully authored digital textbook with hundreds of hand-crafted lessons that build on each other. The hardware is honest: students see instantly when their code works, and the productive struggle of debugging builds the systematic thinking and confidence that transfers to every challenge - including working with AI.

131 objectives. 26 quizzes. Hundreds of guided coding steps. Each mission includes interactive CodeTrek walkthroughs, built-in hints, and automatic goal validation - so students get immediate feedback and teachers can track real progress.

Mission-by-Mission Breakdown

Each mission is a hands-on project that teaches new Python concepts through the CodeX device. Click any mission to see its objectives.

Mission 1: Welcome 4 objectives, 1 quiz
Mission 1: Welcome

Take a tour of the CodeSpace development environment. Students learn how the text editor, Toolbox reference, and simulation controls work before writing any code.

Key concepts: CodeSpace IDE, text editor, Toolbox, simulation

Objectives

  1. Mission Objectives
  2. Text Editor
  3. Tool Box
  4. Simulation Controls
Mission 2: Introducing CodeX 9 objectives, 2 quizzes
Mission 2: Introducing CodeX

Meet the CodeX hardware! Students connect their device, run their first Python program, and learn the CodeTrek guided coding system. By the end, they're displaying images and seeing code come to life on a real device.

Key concepts: Hardware connection, running code, display images, CodeTrek

Objectives

  1. Behold the CodeX
  2. Static Electricity
  3. Find the CPU
  4. Connect the USB
  5. Link to CodeSpace
  6. Save the Code!
  7. The CodeTrek
  8. Show Some Heart!
  9. More Images
Mission 3: Light Show 9 objectives, 2 quizzes
Mission 3: Light Show

Discover the CodeX's pixel LEDs and create colorful light patterns. Students learn about variables, the sleep function, and sequential execution while building a programmable warning sign.

Key concepts: Pixel LEDs, variables, sleep(), sequential code, debugging

Objectives

  1. Find the Pixels
  2. Turn on the Red Light
  3. Two in a Row?
  4. What's Going On?
  5. Find the Bug
  6. Step by Step Colors
  7. Slow it Down
  8. Name that Number
  9. Warning Sign
Mission 4: Display Games 10 objectives, 2 quizzes
Mission 4: Display Games

Master the CodeX display with text, numbers, and type conversion. Students build their first interactive game using button inputs and conditional branching.

Key concepts: Display output, text/numbers, type conversion, if/else branching, button input

Objectives

  1. Back to the Display
  2. Text Messages
  3. Good With Numbers?
  4. Converting Types
  5. Second Show Message
  6. Printing Text
  7. Branching
  8. Button Hunting
  9. Gamer Input
  10. For The Win!
Mission 5: Micro Musician 6 objectives, 1 quiz
Mission 5: Micro Musician

Play music and sound effects with Python! Students learn about code readability, comments, and clean coding practices while creating a portable music player.

Key concepts: Sound output, code readability, comments, clean code

Objectives

  1. Sound Outputs
  2. Micro Tunes
  3. Clean Code
  4. Once More, With Feeling
  5. Comments
  6. Portable MP3s
Mission 6: Heartbeat 11 objectives, 2 quizzes
Mission 6: Heartbeat

Animate a beating heart on the display and discover the power of loops. Students learn while loops, break statements, and variable-speed control through an engaging animation project.

Key concepts: while loops, break, animation, variable speed control

Objectives

  1. Lots of Heart
  2. Pump It UP
  3. Animated Beats
  4. Hearts Forever
  5. Stop It!
  6. Heart Break
  7. Explore the Beat
  8. Half a Sleep
  9. Variable Speed Control
  10. Brake! Not "break"...
  11. Variable Speed Heart
Mission 7: Personal Billboard 9 objectives, 2 quizzes
Mission 7: Personal Billboard

Build an image slideshow that responds to button presses. Students learn Python lists, index navigation, and wrap-around logic while creating a personal display.

Key concepts: Lists, indexing, scrolling, wrap-around, list length

Objectives

  1. Image Selector
  2. Select More Images
  3. Scroll Both Directions
  4. Wrap Around
  5. Image List
  6. No Magic Numbers!
  7. Text Time!
  8. Green With Envy
  9. Fill 'er Up
Mission 8: Answer Bot 7 objectives, 1 quiz
Mission 8: Answer Bot

Create a random answer generator (like a Magic 8-Ball). Students deepen their list skills and learn about random number generation.

Key concepts: Random numbers, lists, string formatting, user interaction

Objectives

  1. Display a Number
  2. Fix it Up
  3. Randomize!
  4. Mix Things Up
  5. Robot Opinion
  6. Wait for Answer
  7. Choices, Choices
Mission 9: Game Spinner 8 objectives, 2 quizzes
Mission 9: Game Spinner

Build an animated game spinner with custom functions. Students learn to define and call their own Python functions while adding physics-style animation.

Key concepts: Functions (def), parameters, animation physics, index management

Objectives

  1. Random Arrow
  2. Click to Flick
  3. Fun Functions
  4. Animation
  5. Style Points - Physics Part 1
  6. Unruly Index
  7. Tame the Unruly Index
  8. Style Points - Physics Part 2
Mission 10: Reaction Tester 7 objectives, 1 quiz
Mission 10: Reaction Tester

Measure a player's reaction time with a countdown game. Students work with time, loops, and learn to reduce code repetition through refactoring.

Key concepts: Time measurement, countdown logic, refactoring, cheat detection

Objectives

  1. Milliseconds
  2. The Countdown
  3. The Fourth Dimension
  4. Time Differential
  5. Let's Keep Playing
  6. Reduce Repetition
  7. No Cheating
Mission 11: Spirit Level 6 objectives, 1 quiz
Mission 11: Spirit Level

Use the CodeX's built-in accelerometer to create a digital level. Students read real sensor data and translate it into visual feedback on screen.

Key concepts: Accelerometer sensor, scaling values, real-time graphics, physics

Objectives

  1. Accel
  2. Tilt-o-Matic
  3. Scale to Degrees
  4. Static Ball
  5. Rolling Stone
  6. Eraser First
Mission 12: Night Light 5 objectives, 1 quiz
Mission 12: Night Light

Build a smart night light that turns on when the room gets dark. Students use the light sensor to create adaptive LED behavior with variable brightness.

Key concepts: Light sensor, analog input, conditional brightness, sensor-driven output

Objectives

  1. Let There Be Sensor
  2. Light Sensing Code
  3. Pixel Filler
  4. Dimmable Light Sensor
  5. Reversed
Mission 13: Sounds Fun 11 objectives, 3 quizzes
Mission 13: Sounds Fun

Create a graphical menu system to browse and play CodeX sound effects. Students build a polished user interface with scrolling, selection, and global variables.

Key concepts: GUI design, scrolling menus, global variables, sound library, state management

Objectives

  1. Race Day
  2. Scrolling Menu
  3. Going Global
  4. Covering Your Tracks
  5. Action
  6. Initialization
  7. Start Race
  8. Fanfare
  9. Music
  10. Finish Race
  11. Warning Siren
Mission 14: Line Art 9 objectives, 2 quizzes
Mission 14: Line Art

Make beautiful images with the power of the pixel! Students learn coordinate graphics, nested loops, and mathematical art patterns.

Key concepts: Pixel graphics, coordinates, nested loops, mathematical patterns, color

Objectives

  1. Pixel Power
  2. Line Up
  3. Two Axes to Grind
  4. Bug Fix
  5. Graphical Grid
  6. Keep It Simple
  7. Get Artistic
  8. Loop Art
  9. Get Colorful
Mission 15: Handball 12 objectives, 4 quizzes
Mission 15: Handball

Develop a retro-arcade Handball game with 2D physics, collision detection, sound effects, and scoring. A capstone project that pulls together everything learned so far.

Key concepts: 2D physics, collision detection, game state, scoring, sound FX, game loop

Objectives

  1. BallX
  2. Bounce X
  3. No Sleep
  4. Bounce 2D
  5. Layout
  6. Sound FX
  7. Player 1
  8. Contact
  9. Missed
  10. Score
  11. Messages
  12. Angles
Mission 16: Break Out 8 objectives, 2 quizzes
Mission 16: Break Out

Follow in the footsteps of legends to create the iconic Breakout arcade game. Students build brick matrices, collision physics, and progressive difficulty - the ultimate Python project.

Key concepts: 2D arrays, matrix operations, advanced collision, game design, iterative development

Objectives

  1. Prototype
  2. Matrix
  3. Brick Layer
  4. Collision!
  5. Bounce
  6. Gamify
  7. Sound Toggle
  8. Perpetual Play

Resources & Links

Ready to bring Python to your classroom?

Get the CodeX Lab Kit