Python Courses

CodeHS Python courses created prior to 2020 use Python 2.7 as their programming language. CodeHS Python Courses created after 2020 use Python 3 as their programming language.

CodeHS uses a JavaScript library called Skulpt to make it easier to run Python in our browser. Most of the commands used in our Python courses are the same as the original Python 2.7 ones, but because we use Skulpt, you will see some small inconsistencies with Python 2.7. To learn more about Skulpt, take a look at the repository on github here.

Python in the Sandbox IDE

Python 3 is also supported in the CodeHs Sandbox. The CodeHS Sandbox also supports Tkinter (named Python Graphics) and Pygame. You can explore all the different types of Python programs supported by the Sandbox here.


CodeHS is working on building a future code server runner that will allow you to select what version of Python you'd like. Keep on the lookout for it in future announcements!

Did this answer your question?