On Feb 20, 6:44 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > They are sets, not lists. > > from sets import Set as set # use in 2.3 and earlier > > l1= set([3, 4, 7, 2]) > l2 = set([2, 3]) > l2 = set([2, 3, 99]) > print l1 & l2
Thanks Paul, but: bosui:~> python Python 2.2.3 (#1, Oct 26 2003, 11:49:53) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from sets import Set as set Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named sets -- http://mail.python.org/mailman/listinfo/python-list