s = set('ABC') print s t = frozenset('BCD') print t print type(s) print type(t) print len(s) print len(s) == len(t) print s == t