Why this project exists
Learning to program involves two different problems: getting a working environment, and knowing what to practise next. Installation instructions go stale, and search results often jump between unrelated snippets. ILoveCompiler removes the setup step and keeps the learning material in one place.
The compiler is a real tool, not a mock-up. It runs CPython in a Web Worker, supports standard input, reports tracebacks, and can load selected scientific packages. The learning pages use the same runtime, so an example or exercise behaves the same way as code you write yourself.
How execution works
Python is compiled to WebAssembly using Pyodide and loaded from a pinned CDN version. When you press Run, the program is posted to a dedicated Web Worker. Output streams back to the console. A timeout terminates the worker if a program runs too long, and a restart creates a fresh runtime.
Source code and standard input stay on your device. Drafts, settings, and learning progress are stored in your browser's local storage. Optional analytics is disabled until you explicitly allow it. See the privacy policy for details.
What the content covers
- 23 ordered tutorials, from the first print() call through classes and error handling.
- 30 complete examples with expected output and explanations.
- 35 exercises checked by real Python test cases.
- 10 guided projects with requirements, starter code, and testing checklists.
The material is written for beginners but avoids inventing simplified rules that later have to be unlearned. When a topic has caveats, such as floating-point precision or mutable default arguments, the lesson says so.
Editorial approach
Examples are expected to run as written. Exercises use a small number of deterministic test cases so the result does not depend on random values or network access. Content is reviewed against the Python version used by the runtime, and pages show an updated date. If you find an error, please report it with the code and the output you expected.
Independence
ILoveCompiler is an independent educational project. It is not affiliated with the Python Software Foundation. Python is a trademark of the Python Software Foundation. Pyodide, Monaco, and other open-source components retain their own licenses.
Contact
Questions, corrections, and partnership enquiries can be sent to hello@ilovecompiler.com. The contact page lists the best way to report a problem.
