The answer to your question is to use an
if
statement e.g.
def f2c(fahrenheit):
if(fahrenheit < 459.67):
return False
return (fahrenheit - 32) * 5/9
Consider whether that's really what you want to do, though. Maybe throwing an exception of some kind when an invalid temperature is entered
might be a better idea.