Python playground
Write and run Python in your browser: no install, no sign-up. Try any code, read input and see the output straight away.
You can use print() and input(), loops, functions and classes, and modules from Python's standard library such as math, random and collections. When something goes wrong, the error message names the line to look at, often with a tip on how to fix it.