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 is the bug in the following program?
def divide(x, y): print(num1 / num2) divide(35, 7)
The bug is on Line 1 - functions can only have one parameter.
The bug is on Line 1 - when a function has more than one parameter, each parameter should be put in their own set of parentheses.
The bug is on Line 2 - parameter names must remain consistent within the function definition.
The bug is on line 4 - when calling a function with multiple parameters, the parameters should be input from least to greatest.