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 will the following program print to the console?
x = 5 def multiply_nums(): y = 6 z = x * y print(z) def divide_nums(): answer = z / x print(answer) multiply_nums() divide_nums()
30 6.0
Error
30 Error
Error 6.0