About Pythonversity

Pythonversity is a free place to learn Python. Every page explains one thing in plain English and shows it with examples you can run and change right in the page.

How we check the examples

Before a page is published, every example on it is run through real Python, and the output printed on the page is compared with what Python actually prints. If they differ, the page is not published until it is fixed.

In your browser, the code runs on Pyodide, a version of Python 3 made for web browsers. Nothing you type is sent to us.

Contact

Found a mistake, or a page you would like to see? Write to hello@pythonversity.com.

Spotted a mistake on this page? Tell us