Online Python Compiler

About this Python compiler

This free online Python compiler (interpreter) lets you write and run Python 3 code in your browser. Use it to practise loops, functions, lists, dictionaries and string handling, or to test a snippet quickly without installing Python.

How to use the online Python compiler

  1. Write or paste your Python code in the editor. Sample code is already loaded.
  2. Click Run.
  3. Read the result in the black panel. Errors from your code appear there too.

Python compiler FAQs

Which Python version does it use?

It runs Python 3. To see the exact version, run: import sys; print(sys.version)

How do I print output in Python?

Use print(). Each call to print() writes a new line in the output panel.

Does the compiler support input()?

Not at the moment. Store your test values in variables and print the results.

Learn Python

Want to go beyond the basics? Follow our step-by-step Python tutorial.

Other online compilers