title: Python lambda sum of a range
body: <p>I want to write a lambda function which is returning the same result as <code>sum(range(101))</code>.</p>
  <p>I tried multiple lambda functions but i dont understand how i can implement it.</p>
  <p>For example i tried</p>
  <p><code>f=(lambda x: sum(x), x in range(0,101))</code></p>
  <p>i tired also <code>a=x in range(0,101)</code>
  and replace <code>(lambda x: sum(x))(a)</code>.</p>
  <p>Can you explain/show how i can implement the range and the sum in this example. It would also be great if you explain me why my solution is false because i need to learn this for school and i want to be better. :)</p>