Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
What answer will print to the console when the following program runs?
def subtract_eight(y): return y - 8 def squared(y): return y * y def my_function(x): return subtract_eight(x) + squared(x) print(my_function(4))
8
10
12
16