Online Python Compiler
Write, run and save Python code, free and right in your browser.
New program
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.Your programs are saved in this browser. Download a .py file to keep a copy anywhere.
Questions
Is this online Python compiler free?
Yes. It's completely free and needs no sign-up. Your code runs in your own browser.
How do I use input() in this compiler?
Open the Input box below the editor and type each value on its own line. Each input() call reads the next line.
Where are my saved programs stored?
Saved programs are kept in this browser on this device. Use the .py download button to keep a copy elsewhere.
Does it work on mobile?
Yes. The editor works on phones, and the coding key bar gives quick access to symbols like ( ) : and quotes.