I'd like to pass a math operator, along with the numeric values to compare, to a function. Here is my broken code:
def get_truth(inp,relate,cut):
if inp print(relate) cut:
return True
else:
return False
and call it with
get_truth(1.0,'>',0.0)
which should return True.