Your Python classroom

Learn by doing.

Short lessons, real Python, and a little practice at a time.

All 20 lessons have an explanation and a challenge. Choose a lesson from the Your lessons list.

Python Explorers›Lesson 1 of 20

Lesson explanation

Try it yourself

Write Python · Run · Learn

Your challenge

main.pyPython in your browser
Browser Python · some packages unavailable
OUTPUT
Your program’s output will appear here.
Tip: Read the challenge, then write your code above.
Your lesson progress is saved on this device. Python code runs locally in your browser.