X = set('spam') Y = set(['h', 'a', 'm']) # Make 2 sets out of sequencesprint X, Y print X & Y # Intersectionprint X | Y # Unionprint X - Y # Difference
Name (required)
email (will not be published) (required)
Website