title: Comparison function in Python using Lambdas
body: <p>I am trying to understand lambdas and I get the idea but how do I define multiple conditions for a Point2 [x,y] comparison, so something like:</p>
  
  <pre><code>if x1 &lt; x2: -1
  if x1 == x2: 0
  if x1 &gt; x2: 1
  </code></pre>