Write and run Python.

Py Editor is a Python code editor for Mac, Windows, iPhone and iPad. Open a project, run a script and read its output in the app.

Py Editor · Mac

Get Py Editor

Mac

Py Editor · Mac

Start with a bundled project, search across its files and run it with the built-in Python. The free Mac download supports the optional Helper for debugging and Git.

Download for Mac

Windows

Py Editor · Windows

Open a project, run a script and inspect the output on your PC. The download includes Python and the WinUI runtime.

Download for Windows

iPhone & iPad

Free to download · In-app purchases

Py Editor · iPhone & iPad

Create or open a Python file, edit it with syntax highlighting and read the result in the console.

Open in the App Store

Calculate an average in Python

Create a file named readings.py, paste these three lines and press Run. The script prints the average of four temperature readings.

t = [18, 21, 23, 19]
avg = sum(t) / len(t)
print(avg)

Expected output 20.25

Change the last reading from 19 to 23 and run it again. The average rises to 21.25.

Py Editor on Mac in action

A snake in Python

From CSV to an interactive dashboard

Read three sales channels from a CSV, group revenue by week and write an HTML report. Open it in Safari to filter the chart by sales channel.

Fix a checkout calculation

A 25% discount on $80 returns $78 instead of $60. Follow the failing test to the percentage calculation, correct it and check the new total.

A snake in Python

In Py Editor on Mac, change the maze seed in main.py and press Run. The script generates a maze and animates a snake following the route to the exit.

See the app by device

Short videos made from app screenshots

See Py Editor on iPhone and iPad