list comprehention

Morten Vold morten.vold at ntnu.no
Tue Jan 24 03:53:53 EST 2006


On 24/01/2006 09:46, Peter Otten uttered:

>>>>len(set([2, 2, 4, 1, 1]).intersection([2, 2, 5, 2, 4]))
> 2
> Close, but no cigar.

I need more coffee! (note to self: Always read entire problem set first)

-- Morten



More information about the Python-list mailing list