On 15/11/05, Shi Mu <[EMAIL PROTECTED]> wrote: > it does not work. > >>> len(set(lisA).intersection(set(lisB))) == 2 > Traceback (most recent call last): > File "<interactive input>", line 1, in ? > NameError: name 'set' is not defined
'set' is introduced as a built-in at Python 2.4. If you have 2.3, there's an analogous module. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list