Question: I've seen some elegant python snippets using list comprehension and map reduce. Can you share some of these code or a web site.

Thanks.

Answer: 
There are some nice functional style snippets in here: [Functional Programming HOWTO](http://docs.python.org/dev/howto/functional)
Here is quick sort:

```
def qsort (list):
    if (len(list) > 1):
        list = qsort(filter (lambda x: x <= list[0], list[1:])) + [list[0]] + qsort(filter (lambda x: x > list[0],  list[1:]))
    return list

```

This one is a solution to a programming puzzle of finding a missing number among the integers from 1 to 100:

```
from random import randint
nos = range(1,101)
to_remove = randint(1,100)
nos.remove(to_remove)
print "Removed %d from list" % to_remove

found = 5050 - reduce (lambda x,y: x+y, nos)
print "You removed %d " % found

```