Python programming, writing your own functions or difficulty in finding built-in functions
<p>In C#, there exists Structured Query Expression and with it, it's fun to play with collections and arrays. I am not sure if such a module exist in python. However SQE implements lambda, lambda expression also exist in python:</p>

<p>Let's imagine I need to get only distinct values from collection:</p>

<pre><code>c# ex: 

List&lt;int&gt; arr = new List&lt;int&gt; {0,1,2,3,4,5,6,7,8,9};
            List&lt;int&gt; arr2 = new List&lt;int&gt; { 2, 3, 4 };
            arr.AddRange(arr2);

            var qry = arr.Distinct();
            foreach (var x in qry)
                Console.WriteLine(x);
python ex:

arr = range(10) + [2,4,3]
def distinct(x):
    arr2 = []
    for y in x:
        if not y in arr2:
            arr2.append(y)
    return arr2

for x in distinct(arr):
    print x,
</code></pre>

<p>python solution maybe slow as if checks happen too much.</p>
