Classic programs, in order from your first print() to small tools and interview
problems. Each page shows the code, the output and how it works, and you can press Run to
try it here in your browser. Every output on these pages is checked when the site is built.
First programs · Math and numbers · Strings · Lists · Dictionaries and sets · Loops and control flow · Functions · Errors and exceptions · Files · Dates and time · Classes and objects · Useful programs
These programs show what Python can do in a few lines. The Academy lessons teach each idea step by step, and every program page links to the lesson behind it.