Welcome to Python Labs

How the labs work

Python Labs are hands-on coding challenges that take you from your first print() to classes, generators, algorithms and complete projects.

Every lab runs Python right in your browser, so there is nothing to install. For each lab:

  • Read the task, the input and output rules, and the example.
  • Write your code in the editor and press Run to try it.
  • Press Check to test it against hidden test cases. Your output must match exactly.
  • Stuck? Read the hints, then open Show solution for a full explanation.

Start with the first lab: Hello, World! →

Chapters

  1. 01 · Output with print() (9 labs)
  2. 02 · Variables & Types (9 labs)
  3. 03 · Input & Arithmetic (9 labs)
  4. 04 · Strings Basics (9 labs)
  5. 05 · String Formatting & Methods (9 labs)
  6. 06 · Conditions (9 labs)
  7. 07 · Loops: for and while (9 labs)
  8. 08 · Loop Control & Patterns (9 labs)
  9. 09 · Lists (9 labs)
  10. 10 · List Techniques (9 labs)
  11. 11 · Tuples & Sets (8 labs)
  12. 12 · Dictionaries (8 labs)
  13. 13 · Functions (9 labs)
  14. 14 · Functional Tools (8 labs)
  15. 15 · Recursion (8 labs)
  16. 16 · Errors & Exceptions (8 labs)
  17. 17 · Classes & Objects (8 labs)
  18. 18 · Inheritance & Magic Methods (8 labs)
  19. 19 · Iterators & Generators (8 labs)
  20. 20 · Standard Library (10 labs)
  21. 21 · Files (8 labs)
  22. 22 · Algorithms (10 labs)
  23. 23 · Advanced Python (9 labs)
  24. 24 · Projects (9 labs)
HOME LEARN COMMUNITY DASHBOARD