Ugrás a fő tartalomra

🧪 Játszótér

Python betöltése (15 MB, egyszer)…

Futtass Pythont a böngészőben

Teljes CPython Pyodide-on át. Írj, futtass, ossz meg. A kód az URL-ben él — másold a linket, a címzett pontosan ezt látja.

NEW✨ Refactor Coach — paste any Python, get a senior review →
✎ playground.py
$ kimenet

CPython indítása a böngészőben…

○Pyodide WebAssembly letöltése (≈ 4 MB)
○A CPython-értelmező betöltése
○A standard könyvtár csatolása
○Kész — tiszta Python 3.12 shell

Tipp: amíg a Python betölt, módosíthatod a bal oldali kódot.

Példák

🐚 Try REPL →Az összes böngészése →
↗
👋Hello, World!

Confirm Python is running. Smallest possible example.

basics
↗
🐍List comprehensions

The one-liner that makes Python feel like Python.

basicsidioms
↗
📊pandas in 12 lines

Load, filter, group, aggregate. No CSV download needed.

pandasdata
↗
📈Plot with matplotlib

Headless matplotlib via Pyodide — figure renders inline in the output panel.

matplotlibnumpyviz
↗
📐Linear regression with numpy

Fit a line to noisy data in 5 lines.

numpymath
↗
🌐Call a real HTTP API

Fetch GitHub's API with requests. Auto-installed via micropip.

requestsapi
↗
⚡asyncio in action

Run three coroutines concurrently with asyncio.gather.

asyncioconcurrency
↗
📦Dataclasses + descriptors

Real validation without writing __init__ by hand.

dataclassesoop
↗
🔎Regex extraction

Pull structured data out of messy text.

regexstrings
↗
📄CSV read + write

Pure-stdlib CSV with DictReader / DictWriter. No pandas needed.

csvstdlibfiles
↗
📋JSON parse + serialise

json.loads, json.dumps, custom default for dataclasses.

jsonstdlib
↗
🔄Generators + lazy eval

Memory-friendly streaming with yield and generator expressions.

generatorsidiomsmemory
↗
🛠Custom context managers

with-statement support via class + via @contextmanager decorator.

context-manageridioms
↗
⚠Exception patterns

Custom exception hierarchy, EAFP, exception chaining.

exceptionsidioms
↗
🏷Modern type hints

PEP 604 union types, TypedDict, Protocol — what mypy expects in 2026.

typingmypy
↗
🔁itertools tricks

groupby, accumulate, pairwise, combinations — the lazy toolkit.

itertoolsstdlibidioms
↗
🎀Decorators — log + cache + retry

Real-world decorator patterns: logging wrapper, functools.cache, retry on failure.

decoratorsidioms
↗
🗄SQLite from stdlib

Real database (in-memory) — no install. Create, insert, query, parameterise.

sqlitestdlibdatabase
↗
🧵f-string mini-cookbook

Padding, alignment, thousand separators, dates, debug syntax.

fstringstringsidioms
↗
🗂dict patterns

Default values, dict comprehensions, dict union (|), nested gets.

dictstdlib
↗
🧹pandas — clean a messy CSV

Real cleaning: parse dates, strip whitespace, fill missing, dedupe.

pandasdatacleaning
↗
🖼numpy — toy blur kernel

Convolve a 1-D signal with a moving-average kernel.

numpymath
↗
🪄regex — find + replace

Capture groups in re.sub callbacks. Slugify a string.

regexstrings
↗
🧱OOP — properties + validation

@property + @setter pattern for invariant-protected attributes.

oopproperties
Tetszett a játszótér? Egy teljes pálya van mögötte.
Ugyanaz a futási idő, több száz irányított óra, AI-mentor, ha elakad. Ingyenes szint – kártya nélkül.

Tippek

  • Cmd/Ctrl + Enter futtat.
  • A Pyodide-ban benne van a pandas, numpy, scipy, matplotlib — importáld közvetlenül.
  • A Megosztás gomb az URL-be teszi a kódot — bárhova illesztheted ingyenes regisztráció után.
  • A kód marad a böngészőben két látogatás között.
  • A nem-stock csomagok (requests, httpx, pydantic, attrs) az első futáskor automatikusan települnek micropip-en át.