python3 Solution
\n\nclass Solution:\n    def similarPairs(self, words: List[str]) -> int:\n        count=0\n        N=len(words)\n        for i in range(N):\n            for j 
\n```\nclass Solution:\n    def similarPairs(self, words: List[str]) -> int:\n        count=0\n        N=len(words)\n        for i in range(N):\n            for j in range(i+1,N):\n                if set(words[i])==set(words[j]):\n                    count+=1\n\n        return count            \n```
['Python3']