Practice

Python Practice

Basic

Hands-on Python lessons - write real code, run it instantly, and get checked by real tests. No setup, no account.

Python Practice

Nine short, hands-on Python lessons: start with your first print statement, build up through error handling and generators, debug a real traceback, then finish with a function-writing capstone. Each lesson gives you a task and a Run button - your code is checked against real tests the moment you run it. Everything runs in your browser.

Start with lesson 1. You can leave and come back any time - your code is saved locally.

Lessons

  1. Print and variables
  2. Conditionals
  3. Loops
  4. Lists
  5. Dictionaries
  6. Error handling
  7. Generators
  8. Fix the bug: read the traceback
  9. Capstone: word counter