[Python] set ^ set
python\nclass Solution:\n    def similarPairs(self, words: List[str]) -> int:\n        total = 0\n\n        for i in range(len(words)):\n            for j in ra
```python\nclass Solution:\n    def similarPairs(self, words: List[str]) -> int:\n        total = 0\n\n        for i in range(len(words)):\n            for j in range(i + 1, len(words)):\n                if not (set(words[i]) ^ set(words[j])):\n                    total += 1\n                    \n        return total\n```
['Ordered Set', 'Python']