Loading...
Loading...
Loading...
Free, no sign-in
Write Python code, add input if your program reads any, and press Run. Python 3.12, in your browser.
Press Run (or Ctrl+Enter) to see the output here.
What it supports
Input
Programs that read from the keyboard get their input from the Input box. Type one value per line, then press Run. The program reads the lines in order, just as it would from a keyboard.
n = int(input()) # first line a, b = map(int, input().split()) # two numbers on one line import sys rest = sys.stdin.read() # everything that is left
Tip: if the output is empty or the run stops after 5 seconds, the program may be waiting for input that is not in the box.
Questions
Learn
This compiler is the same editor the Python course uses for its practice problems.
Looking for another language? Try the online Java compiler.