Online Python – IDE, Editor, Compiler, Interpreter

Write, run and test Python code in your browser.

Starting Python…
main.py
PYTHON CODECtrl + Enter to run
OUTPUTPython 3
Python Coding Lab
Loading Python…

Python Files

Upload files that your Python program can work with. Changes made by Python are available when you view or download the file.

Files stay in your browser and are not uploaded to the website server.
File

        

Using the Python Lab

Write your program in the Code panel and select Run Code. Programs using input() display the prompt written in your Python program.

Example

name = input(“Enter your name: “) print(“Hello”, name) age = int(input(“Enter your age: “)) if age >= 18: print(“You are an adult.”) else: print(“You are under 18.”)

Python libraries

import random import math import csv import json import statistics import datetime print(random.randint(1, 10)) print(math.sqrt(25))

How to use

Write your Python code in the editor.

Select Run Code to execute it.

View the result in the output panel.

Keyboard shortcuts

Ctrl + Enter   Run code

Tab   Indent your code

Try a challenge

Test your skills using short Python challenges designed for GCSE students.

Your code runs in a secure browser environment. Files stay on your device and are not uploaded to the website server.

Free Online Python Compiler

Use this online Python compiler and coding lab to write, run and test Python code directly in your browser. It supports user input, standard Python libraries and browser-based file handling, including CSV files.

Scroll to Top