Skip to content

Python in your browser · free · no sign-up

Code, practice, and learn — in one place.

BreakPy is a free online Python interpreter and editor at reads.fyi. Python is interpreted and runs in your browser through Pyodide. No account is needed. Run Python 3 in your browser, supply input, and inspect execution with a step-by-step visualizer. Practice interview problems and test edge cases with Break My Code. Drafts stay in this browser, while optional sign-in lets you save programs to your account. Python execution uses Pyodide in your browser, not the application server.

Problems
88
Guides
9
Account needed
None

Continue where you left off

0 of 88 problems solved

Run Python now

Type, press Run, see output. Python 3 loads in your browser tab, so there is nothing to install.

scores.py
Output

Press Run or Ctrl / Cmd + Enter. Python runs right here in your browser.

Open the full editor with files, input, and the step-by-step visualizer

Practice real problems

88 problems, grouped by the pattern they teach. Each one runs real tests in your browser, and Break My Code hunts for the edge cases you missed.

All problems

Dynamic Programming

7

Reuse smaller answers to solve optimization and counting problems.

Backtracking

4

Explore choices systematically and undo state to enumerate valid outcomes.

Design

8

Maintain useful invariants in caches, counters, and stateful data structures.

Job Queue / Simulation

1

Model job lifecycles, FIFO dispatch, and cancellation without real threads.

System Design

1

Explore distributed-system trade-offs and implement deterministic simulations of core building blocks.

Linked Lists

6

Practice pointer reversal, dummy nodes, slow/fast pointers, and digit addition with linked lists.

Learn with short guides

9 guides. Each answers one question first, then shows the code and its output.

All guides
  1. 01How to find edge cases in Python interview codeFind Python edge cases with Break My Code.
  2. 02How to run Python online without installing itRun your first Python program online for free with BreakPy.
  3. 03How to use input() in an online Python interpreterUse Python input() online with prepared standard input.
  4. 04Visualize Python code and understand recursionUnderstand Python execution with a step-by-step visualizer.
  5. 05Async Cache Invalidation: What to Do When a Key Is Invalidated Mid-FetchWhen a cache key is invalidated while its fetch is still in flight, the stale result must not be stored.
  6. 06Benchmarking Python Decorator Overhead with timeitMeasure Python decorator overhead with repeated timeit runs, compare wrapped and bare calls, and understand why tiny timing differences need careful checks.
  7. 07How to Write a String (or Encrypted Bytes) to a File or Socket in PythonEncrypted bytes are not text — decoding them as UTF-8 fails.
  8. 08What to Expect in a Low-Level Design (LLD) RoundAn LLD round is 45–60 minutes: clarify, design the classes, write runnable code.
  9. 09Generators and Lazy Iteration: Process Millions of RecordsProcess millions of records in Python without loading them all: generator expressions, yield, pipelines, itertools and chunked reading, with runnable code.

System design, in plain English

Three classic interview systems. Each one explains what the system does and what you learn by building it.

All system design
01

URL Shortener

Turn a long link into a short code, then send millions of visitors to the right page fast.

What you learn
  • Hashing and base62 encoding
  • Generating unique IDs that never collide
  • How redirects work
  • Caching and scaling when one link goes viral
02

Parking Lot

Park cars, bikes, and trucks in spots that fit, hand out tickets, and charge a fee on the way out.

What you learn
  • Designing classes that each do one job
  • Tracking state as spots fill and free up
  • Swappable pricing rules
  • Low-level design interview structure
03

Rate Limiter

Let each user make only so many requests per second, so one busy client cannot take down a service.

What you learn
  • The token bucket algorithm
  • Throttling with a fake clock you control
  • Refill math and burst limits
  • Why shared counters need care under concurrency
Prefer a guided path? Open the MapOne route through fundamentals, patterns, and system design, with your progress marked along the way.

What the workspace does

  • Visualize execution

    Visualize records a run so you can step through each line, watch variables change, and select call-stack frames.

  • Prepared input

    Programs that call input() read one line per call from the Input tab. Output is read-only, not an interactive terminal.

  • Local drafts, optional account saving

    Drafts and prepared input stay in this browser. Sign in and choose Save to reopen a program on other devices, or Download a .py backup.

  • Local completion

    Ctrl+Space or the Suggestions button offers keywords, built-ins, and names from your program. Tab or Enter accepts.

  • Share by link

    Share puts the current code in the URL fragment. Anyone with the link can read it, so keep secrets out.

Questions learners ask

Is this online Python interpreter free?

Yes. Running Python, code completion, visualization, interview practice, and rule-based Break My Code tests are free without sign-in. Optional AI-generated cases are separate.

How can I find edge cases in my Python solution?

Open an interview problem, write your solution, and select Break My Code beside Run Tests. It compares your code with a reference on valid edge cases and shows the input, expected result, actual result, and a lesson for failures. Passing a test suite does not prove correctness on every input.

What runs Python behind the scenes?

BreakPy uses Pyodide 0.27.7, which runs CPython as WebAssembly in a browser Web Worker. Python is interpreted and runs in your browser through Pyodide. No account is needed. Your code is not sent to the application server for execution. The first run downloads runtime files from jsDelivr.

Do I need an account or a Python installation?

No account or local Python installation is required. Open BreakPy in a compatible modern browser and run a small Python 3 console program. The initial runtime download requires an internet connection.

How do I enter input for my Python program?

Before running, open the Input tab and put each response on a separate line. Each input() reads the next line as a string. Output is read-only, not an interactive terminal. Convert numeric responses with int() or float().

Where is my code saved, and can it be lost?

Drafts stay in this browser and can be lost if site data is cleared. To keep a program across devices, sign in, choose Save, and wait for 'Saved to your account', or download a .py backup.

Can other people see my saved programs?

Account-saved programs are private. Sharing a code link makes its code readable to anyone with the link, so never include secrets.

Can I install any Python package or run a web server?

This editor does not provide a general pip-install interface or automatic dependency installation. Browser and Pyodide limitations apply to packages, networking, sockets, and operating-system features. Use a local or server environment for a long-running web server.

How does the Python code visualizer work?

Visualize records a bounded run with source-line events, variable snapshots, and call-stack frames. You can step through the recording and inspect recursive callers. Recordings are limited to 500 events; large values can be abbreviated or omitted.

What does code completion support?

Completion suggests Python keywords, built-in functions, and names found in your program. Use Ctrl+Space or the Suggestions button to open it, then Tab or Enter to accept. It is local completion, not an AI assistant or a full type-aware language server.

All resources

Every problem, guide, and system design page in one list. One tap opens it.

101 of 101