title: How to make a order-n callable function in python
body: <p>You have the next code</p>
  <pre><code>def f(val):
      return lambda x: x + val
  
  assert f(5)(6) == 11
  </code></pre>
  <p>this works, but how can you make this n-order?</p>
  <pre><code>assert f(5)(6)(7)...(n) == sum of values
  </code></pre>
  <p>I'm out of ideas on how to make this work.</p>