clean code
python3 []\nclass Solution:\n    def removeAlmostEqualCharacters(self, word: str) -> int:\n        count = 0\n        i = 0\n        while i < len(word) - 1:\n 
```python3 []\nclass Solution:\n    def removeAlmostEqualCharacters(self, word: str) -> int:\n        count = 0\n        i = 0\n        while i < len(word) - 1:\n            if abs(ord(word[i]) - ord(word[i+1])) <= 1:\n                count += 1\n                i += 2\n            else:\n                i += 1\n        return count\n```
['Python3']