a = set('abracadabra')b = set('alacazam')print a # unique letters in aset(['a', 'r', 'b', 'c', 'd'])print a - b # letters in a but not in bprint a | b # letters in either a or bprint a & b # letters in both a and bprint a ^ b # letters in a or b but not both
Name (required)
email (will not be published) (required)
Website