[Python3] check diff
\n\nclass Solution:\n    def areAlmostEqual(self, s1: str, s2: str) -> bool:\n        diff = [[x, y] for x, y in zip(s1, s2) if x != y]\n        return not diff
\n```\nclass Solution:\n    def areAlmostEqual(self, s1: str, s2: str) -> bool:\n        diff = [[x, y] for x, y in zip(s1, s2) if x != y]\n        return not diff or len(diff) == 2 and diff[0][::-1] == diff[1]\n```
['Python3']