CodeHS supports many programming languages and versions on our platform. You can learn more about CodeHS program types in this related article: Program Types
On any CodeHS exercise or Sandbox program, you can see additional information about the language and version by going to More > About:
Below is some general information about the versions of programming languages you will find in CodeHS courses and Sandbox programs.
Current CodeHS courses use: Python 3
Courses created prior to 2020 used: Python 2.7
The CodeHS Sandbox also supports Tkinter (named Python Graphics) and Pygame. Explore all the different types of Python programs supported by the Sandbox here.
Main CodeHS courses use: Java 8 / 1.8
CodeHS now supports Java 11 and the ability to switch between versions of Java. To switch between versions, you can create a file named “run.sh” that uses the jenv command.
To learn more about the
run.sh file, check out this tutorial:
CodeHS Tutorial: run.sh
To learn more about using Java 11, check out this demo and short video:
CodeHS supports JShell, an interactive Java REPL (read-eval-print-loop). In JShell you can explore the Java language without compiling an entire program. Running a JShell uses a 'run.sh' file.
Demo Sandbox Program:
Still have questions? Contact our team at firstname.lastname@example.org to learn more!