Like practically anything these days, you can also run Python in a browser. On this page, you can use my online Python interpreter. It allows you to enter Python code, run it, and see the results. All without the need to install Python and launch a Python REPL yourself. You can use this online Python interpreter while working your way through the Python tutorial for beginners.
Table of Contents
Running Python in the browser
In short, If you:
- donβt feel like installing Python (yet),
- would like to get started quickly,
- want to try if Python is for you before installing it
youβre in luck! You can get started right away without the need to install anything.
Please note that:
- This is a beta product
- This online Python interpreter intentionally has limited resources (see below for details)
- Itβs not a REPL; itβs not interactive. You canβt use
input(). See below for more info.
Having said that, it should be enough to experiment and learn. And since youβre one of the first users, Iβd love to hear your comments and questions (or rants).
Using Python in a browser is fine for learning and fiddling around. However, once you start to get serious about Python development, you will find out that, at some point, youβll want a proper IDE (Integrated Development Environment) and a local installation of Python. I recommend installing Python on your PC if you can; itβll offer a much better experience and allow you to work offline too. Head over to our Python installation guide to learn how to install Python on your computer.
The online Python interpreter
Not a REPL
Please note that this is not a REPL or interactive terminal. In this playground, you create a real Python file (playground.py), that you execute on a real computer at Python Land. So if you want to see the output, you need to use the print statement to print it. Here are a couple of examples to get you started:
print(1 + 3)
# will print 4
print('Hello world')
# will print 'Hello world'
a = 6 + 9
print(a)
# will print 15Code language: Python (python)
Resource limits
You shouldnβt run into resource limits when using this Online Python Interpreter for our tutorial. If you do, itβs probably caused by one of the limits on:
- the size of the input,
- the run time of a program,
- the memory usage,
- the number of process forks
- networking wonβt work
Using modules in the online Python interpreter
You can import Python modules with this online Python interpreter. Anything that is included in the Python standard library should be usable, like the os module, threading, multiprocessing, the JSON module, CSV, etcetera.
However, you can not install external packages that would require you to use pip install. I did install some of the most often-used modules, especially those that are mentioned in this tutorial. You can expect the following packages to be present:
- Numpy, SciPy, sympy
- PyYAML
- Pandas
- jmespath
- python-dateutil
- pytest
Questions?
If you have any questions or comments, please contact me here.



Used this for my first program