Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

Python Question of the Day April 16, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    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))
    Python