Python: Getting filter to work with lambda taking multiple arguments
<p>Using Python, am finding it difficult to get filter() to work with lambda for cases where more than 1 argument needs to be passed as is the case in the following snippet:</p>

<pre><code>max_validation = lambda x,y,z: x &lt; y &lt; z
sequence1 = [1,4,8]
filter(max_validation, sequence1)
</code></pre>

<p>It raises the following error:<br/></p>

<pre><code>TypeError: &lt;lambda&gt;() takes exactly 3 arguments (1 given)
</code></pre>

<p>Please suggest as to what am doing wrong here. Thanks.</p>
