URL Shortener
Turn a long link into a short code, then send millions of visitors to the right page fast.
- Hashing and base62 encoding
- Generating unique IDs that never collide
- How redirects work
- Caching and scaling when one link goes viral
Python in your browser · free · no sign-up
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.
Type, press Run, see output. Python 3 loads in your browser tab, so there is nothing to install.
Press Run or Ctrl / Cmd + Enter. Python runs right here in your browser.
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.
Reason about locks, ownership, scheduling, and safe interleavings without real threads.
Build reliable chunk, shard, checkpoint, and content-addressed storage workflows.
Practice request control with deterministic clocks, retries, batching, and fake APIs.
Traverse connected data, find paths, and reason about tree structure.
Reuse smaller answers to solve optimization and counting problems.
Transform and search text using counting, windows, and careful parsing.
Explore choices systematically and undo state to enumerate valid outcomes.
Maintain useful invariants in caches, counters, and stateful data structures.
Model job lifecycles, FIFO dispatch, and cancellation without real threads.
Implement class APIs, model state machines, and test deterministic designs. Existing cache and rate-limiter exercises are cross-listed, not duplicated.
Explore distributed-system trade-offs and implement deterministic simulations of core building blocks.
Practice pointer reversal, dummy nodes, slow/fast pointers, and digit addition with linked lists.
9 guides. Each answers one question first, then shows the code and its output.
Three classic interview systems. Each one explains what the system does and what you learn by building it.
Turn a long link into a short code, then send millions of visitors to the right page fast.
Park cars, bikes, and trucks in spots that fit, hand out tickets, and charge a fee on the way out.
Let each user make only so many requests per second, so one busy client cannot take down a service.
Visualize records a run so you can step through each line, watch variables change, and select call-stack frames.
Programs that call input() read one line per call from the Input tab. Output is read-only, not an interactive terminal.
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.
Ctrl+Space or the Suggestions button offers keywords, built-ins, and names from your program. Tab or Enter accepts.
Share puts the current code in the URL fragment. Anyone with the link can read it, so keep secrets out.
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.
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.
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.
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.
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().
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.
Account-saved programs are private. Sharing a code link makes its code readable to anyone with the link, so never include secrets.
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.
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.
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.
Every problem, guide, and system design page in one list. One tap opens it.