I am getting a SyntaxError 'return outside function' error on my code. I would appreciate any help in regards to this as this is frustrating me to no end.
def temp( T, from_unit, to_unit ) : # Function for temperature
""" Convert between Fahrenheit, Celsius, or Kelvin. Where from_unit and to_unit are temperature units, either 'F' (or 'f')
for Fahrenheit, or 'C' (or 'c') for Celsius, or 'K'(or 'k') for Kelvin; and T is a temperature number (of float) for the
unit from_unit """
if from_unit == to_unit:
return T