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 KitA 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
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
- Mission Objectives
- Text Editor
- Tool Box
- Simulation Controls
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
- Behold the CodeX
- Static Electricity
- Find the CPU
- Connect the USB
- Link to CodeSpace
- Save the Code!
- The CodeTrek
- Show Some Heart!
- More Images
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
- Find the Pixels
- Turn on the Red Light
- Two in a Row?
- What's Going On?
- Find the Bug
- Step by Step Colors
- Slow it Down
- Name that Number
- Warning Sign
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
- Back to the Display
- Text Messages
- Good With Numbers?
- Converting Types
- Second Show Message
- Printing Text
- Branching
- Button Hunting
- Gamer Input
- For The Win!
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
- Sound Outputs
- Micro Tunes
- Clean Code
- Once More, With Feeling
- Comments
- Portable MP3s
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
- Lots of Heart
- Pump It UP
- Animated Beats
- Hearts Forever
- Stop It!
- Heart Break
- Explore the Beat
- Half a Sleep
- Variable Speed Control
- Brake! Not "break"...
- Variable Speed Heart
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
- Image Selector
- Select More Images
- Scroll Both Directions
- Wrap Around
- Image List
- No Magic Numbers!
- Text Time!
- Green With Envy
- Fill 'er Up
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
- Display a Number
- Fix it Up
- Randomize!
- Mix Things Up
- Robot Opinion
- Wait for Answer
- Choices, Choices
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
- Random Arrow
- Click to Flick
- Fun Functions
- Animation
- Style Points - Physics Part 1
- Unruly Index
- Tame the Unruly Index
- Style Points - Physics Part 2
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
- Milliseconds
- The Countdown
- The Fourth Dimension
- Time Differential
- Let's Keep Playing
- Reduce Repetition
- No Cheating
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
- Accel
- Tilt-o-Matic
- Scale to Degrees
- Static Ball
- Rolling Stone
- Eraser First
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
- Let There Be Sensor
- Light Sensing Code
- Pixel Filler
- Dimmable Light Sensor
- Reversed
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
- Race Day
- Scrolling Menu
- Going Global
- Covering Your Tracks
- Action
- Initialization
- Start Race
- Fanfare
- Music
- Finish Race
- Warning Siren
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
- Pixel Power
- Line Up
- Two Axes to Grind
- Bug Fix
- Graphical Grid
- Keep It Simple
- Get Artistic
- Loop Art
- Get Colorful
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
- BallX
- Bounce X
- No Sleep
- Bounce 2D
- Layout
- Sound FX
- Player 1
- Contact
- Missed
- Score
- Messages
- Angles
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
- Prototype
- Matrix
- Brick Layer
- Collision!
- Bounce
- Gamify
- Sound Toggle
- Perpetual Play