The CodeHS Python courses created prior to 2020 all use Python 2.7 as their programming language. However, Python 3 is supported in our CodeEditor and in our Sandbox. CodeHS uses a JavaScript library called Skulpt to make it easier to run Python in our browser. Because we use Skulpt, you will see a few small inconsistencies with Python 2.7; however, most of the commands used in our Python courses are the same as the original Python 2.7 ones. If you'd like to explore more on Skulpt, take a look at the repository here:

CodeHS Python Courses created after 2020 use Python 3 as their programming language. CodeHS is also 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?