Editor

What's new

New tools, pages and features, newest first.

  • Pygame online

    Write a pygame game and play it in your browser, with on-screen keys on phones.

  • Python visualizer

    Run code one line at a time and watch its variables, lists and objects change.

  • 20 algorithm animations

    Sorting, searching, recursion and graph algorithms, step by step.

  • Python error explanations

    What 40 common error messages mean and how to fix them. The editor links to them when your code fails.

  • Python programs with output

    250 programs with their output and an explanation, plus the CBSE class 11 and 12 practical lists.

  • Exercise pages

    Tutorial exercises on their own pages, each with a Check button. New ones go up every two weeks.

  • Python interview questions

    60 common questions with short answers and code you can run.

  • Regex tester

    Test regular expressions with Python's own re module.

  • CSV explorer

    See a CSV file's columns, types and missing values, with a chart for any column.

  • Plot studio

    Make a matplotlib chart from your numbers and copy the code.

  • Notebook viewer

    Read any .ipynb file or GitHub notebook, then run it in the editor.

  • Python turtle online

    Turtle graphics in the browser, with PNG and GIF export, in six languages.

  • The Shell tab

    Python's >>> prompt under the editor, with the variables from your last run.

  • Output on the page

    Tutorial examples show their output before you press Run.

  • More for teachers

    Class lists, every tutorial exercise assignable, CBSE, GCSE and AP CSP sets, and posting assignments to Google Classroom.

  • One-line embed

    One script tag makes every Python code block on your site runnable.

  • Sign in with Google or an emailed code

    Join a class with your school email, and count for your school.

  • Classrooms

    Create a class, assign problems and quizzes, and see who is stuck on a live board. Contests and duels too.

  • Daily Python puzzle

    Five "what does this print?" snippets a day, from easy to hard.

  • 50 practice problems

    From FizzBuzz to an LRU cache, each checked when you press Check.

  • Site search

    Press Ctrl+K anywhere to find a tutorial, problem or page.

  • Chrome extension

    A Run button on Python code in ChatGPT, Claude, Stack Overflow and GitHub.