title: How to pass an operator to a python function?
body: <p>I'd like to pass a math operator, along with the numeric values to compare, to a function. Here is my broken code:</p>
  
  <pre><code>def get_truth(inp,relate,cut):    
      if inp print(relate) cut:
          return True
      else:
          return False
  </code></pre>
  
  <p>and call it with</p>
  
  <pre><code>get_truth(1.0,'&gt;',0.0)
  </code></pre>
  
  <p>which should return True.</p>