How to use an online Python 3 compiler
- Write Python in the editor, or choose an example.
- If your program uses input(), type the answers in the Input box, one per line.
- Press Run (or Ctrl+Enter) and read the output.
- An error shows the line it happened on, marked in red in the editor.
Learning to code? The free courses in the Learn section go from beginner to expert, with tasks checked in this same editor. Other languages: all languages, JavaScript, TypeScript, SQL, HTML, CSS & JS.