Code Playground

Write, run, and hear your code right here in the browser. Choose a language, type your program in the accessible editor, and activate Run to compile and run it in one step. The output, any errors, and the exit code appear below — announced for screen readers and reachable by keyboard. No installation, and nothing to see required.

Write your Python program here. Press Control plus Enter (or Command plus Enter) to run it. Enter keeps your indentation, brackets and quotes close automatically, and Tab indents while Shift plus Tab removes indentation. Press Escape to leave the editor and move to the Run button.

Text you put here is sent to your program as its input, for example for Python's input() or C's scanf. Leave it empty if your program does not read input.

Output

Run your program to see its output here. The result will include the program output, any error messages, and the exit code.