Sorry if this is a trivial question. I need the function to give a value that depends on what is inputted. In this case the salinity of water in depending on the latitude.
latitude = float(input("Enter a latitude between 0(Equator) and 90(Pole)="))
if latitude <= 90 :
def sal_of_seawater(latitude):
salinity = latitude*(-1/45) + 36
return salinity
print(sal_of_seawater)
The output should be a value between 34 and 36 but instead this is outputted
function sal_of_seawater at 0x00000213FC2D9D08