DiscoveryVIPExplore the learning library ↗

PYTHON MASTERY LAB / LEARN BY MAKING

Think in Python.
Build something useful.

Fifty lessons. Real Python. A place to make mistakes, understand the result and try again.

Loading bundled Python runtime…

Beginner → practical projects · No sign-in · Real Python in your browser

● ● ● your-next-skill.py
skills = [
    "understand",
    "experiment",
    "build"
]

for skill in skills:
    print(f"{skill} →")
Small steps. Visible progress. 50 chances to try.
0 / 50exercise checks passed

YOUR CHALLENGE

Explore the test cases before coding

Checks compare results for these examples. They do not prove correctness for every possible input or enforce a particular coding technique.

Draft saved locally

Real Python runs in a worker using the bundled Pyodide runtime. Define solve(data) and return a JSON-compatible value. Standard-library imports are supported; package installation and terminal input are outside this course. Runs stop after 5 seconds. Ctrl/⌘ + Enter runs checks.

Write your solution, then run the checks.

Experiment with your own input

This reports your return value without grading or marking the lesson complete. Keep the input shape appropriate for the selected lesson.

Console output
No output yet.

Make the idea stick