Sum_of_squares is function or a variable

Hi,

This is may be very basic question.
Here sum_of_squares is function or a variable where
a function is assigned

def soa(f): # sum anything
def h(x, y):
return f(x) + f(y)
return h

sum_of_squares = soa(square)
type(sum_of_squares)

Thanks and Regards,
Subho

sum_of_sqaures is a variable to which the output of the function soa is assigned. By output I mean the value returned by the function.

def soa(f): # sum anything
def h(x, y):
return f(x) + f(y)
return h

sum_of_squares = soa(square)
type(sum_of_squares)