Μετάβαση στο κύριο περιεχόμενο

🧪 Playground

Φόρτωση Python (15 MB, μία φορά)…

Τρέξε Python στον περιηγητή

Πλήρης CPython μέσω Pyodide. Γράψε, τρέξε, μοιράσου. Ο κώδικας ζει στο URL — αντίγραψε το, ο παραλήπτης βλέπει ακριβώς το snippet σου.

NEW✨ Refactor Coach — paste any Python, get a senior review →
✎ playground.py
$ έξοδος

Εκκίνηση CPython στον περιηγητή…

○Λήψη Pyodide WebAssembly (≈ 4 MB)
○Φόρτωση του διερμηνέα CPython
○Σύνδεση της τυπικής βιβλιοθήκης
○Έτοιμο — καθαρό κέλυφος Python 3.12

Συμβουλή: όσο φορτώνει η Python, επεξεργάσου τον κώδικα αριστερά.

Παραδείγματα

🐚 Try REPL →Περιήγηση σε όλα →
↗
👋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
Σας άρεσε η παιδική χαρά; Υπάρχει μια πλήρης πορεία πίσω από αυτό.
Ίδιος χρόνος εκτέλεσης, εκατοντάδες καθοδηγούμενα μαθήματα, ένας μέντορας AI όταν κολλάτε. Δωρεάν βαθμίδα — χωρίς κάρτα.

Συμβουλές

  • Cmd/Ctrl + Enter εκτελεί.
  • Το Pyodide περιλαμβάνει pandas, numpy, scipy, matplotlib — κάνε import.
  • Το κουμπί Μοιράσου βάζει τον κώδικα στο URL — επικόλλησέ τον παντού μετά από δωρεάν εγγραφή.
  • Ο κώδικας παραμένει στον περιηγητή μεταξύ επισκέψεων.
  • Πακέτα εκτός stock (requests, httpx, pydantic, attrs) εγκαθίστανται μέσω micropip στην πρώτη εκτέλεση.