Python Lab
Student-friendly IDE that runs real Python code.
Students can write and run Python code directly in a browser-based environment. Designed for students aged 13+, providing a smooth, safe, and engaging entry point into text-based coding.

Python Lab at a glance
Ages: 13, 14, 15, 16, 17, 18
Level: Beginner
What you can make: Python Programs and Visuals
Devices: Laptop, Chromebook, Tablet
Browsers: All modern browsers
Languages supported: English
Extensive documentation detailing specific functionality and use is available for Python Lab.
See what you can make in Python Lab!
Check out the starter projects below to see how Python Lab works, you can also remix them and make them your own!
Casino Slot Machine

Try to get a successful run on the slot machine!
Butterflies and flowers

Watch the painter make a beautiful image with butterflies and flowers
Dungeon Quest

Explore a text-based dungeon adventure game built in Python!
Build with python!
Create your first project from scratch in Python Lab!
Python Lab in our curriculum
Looking for a step by step introduction to making things with Python? Our curriculum will help you learn everything you need to get started with Python Lab.
Grades 9-12
Foundations of AI Programming

Learn Python through hands-on projects and explore ethical computing topics like accessibility, bias, and inclusivity in software design.
Grades 9-12
Artificial Intelligence Foundations

The Artificial Intelligence (AI) Foundations is a free, flexible curriculum which introduces students to the core principles and real-world applications of computer science.
Python self-paced professional learning for teachers
Looking for flexible professional learning to help you prepare to bring Python to your students? Our free self-paced professional learning will help you learn everything you need to get started teaching Foundations of AI Programming!

Foundations of AI Programming
This professional learning module is designed to help you prepare to teach Code.org’s Foundations of AI Programming unit.
Frequently Asked Questions
Is this real Python?
Yes! Python Lab runs Python 3. It supports common language features like functions, loops, conditionals, lists, and more.
What is Painter mode?
Painter mode lets students create visual output with Python—like shapes, drawings, and simple animations. It’s a fun way to apply programming concepts creatively. You can view documentation here.
Can students use external libraries or files?
At the moment Python Lab supports Pandas, Matplotlib and Numpy python libraries.
Is Python Lab right for my classroom?
If your students are ready for text-based coding, absolutely. It’s built specifically for middle and high school students, with curriculum and support tools to match.
Additional resources
Paragraph
Explore our labs

Our labs offer supportive programming environments that allow students to create animations, design games, build apps and more!
Explore widgets

Delve into the fundamentals of computer science with our interactive widgets. These tools make abstract principles tangible and engaging.
Curriculum Catalog

Comprehensive curriculum offerings for every grade and experience level featuring robust structured and self-paced learning options.