P+29072011-Solution
#!/usr/bin/env python
from random import randint
def rnd():
return randint(1,20)
# task 1
l1 = { rnd() for x in xrange(30) }
l2 = { rnd() for x in xrange(30) }
print l1.intersection(l2)
# task 2
lists = [ [ rnd() for x in xrange(30) ] for y in xrange(20) ]
print sum( [ all( [list_value>2 for list_value in li]) for li in lists ] )
print sum( [ any( [list_value<2 for list_value in li]) for li in lists ] )
# task 3
print { l:rnd() for l in "webLyzard" }