title: How to add a to the absolute value of b without call abs
body: <p>I'm having a little problem defining a function. I'm trying to add a to the absolute value of b without calling abs</p>
  
  <pre><code>from operator import add, sub
  def a_plus_absolute_b(a, b):
      """Return a+abs(b), but without calling abs."""
      if b &lt; 0:
          op = add(a, (b * -1))
      else:
          op = add(a, b)
      return op(a, b)
  </code></pre>