Practice · Experiment · Learn
Build it in Python.
Write code, run it, and learn by working through the result.
Python in your browser
main.pyPython 3
Ready to run
Output
Your output will appear here.
Program inputOptional
For programs using input(), enter each answer on a separate line before running.
Errors are shown without revealing the line number or traceback. Runs happen in your browser. An internet connection is needed to load Python.