005. done!
Intuitionsimple while loop⭐python allows returning boolean expressions directly instead of specifying !i.e this is unnecessary ⬇️Code
# Intuition
simple while loop

⭐python allows returning boolean expressions directly instead of specifying !

i.e this is unnecessary ⬇️

```
if s[0] == s[1]:
    return True
else:
    return False
```

# Code
```python3 []
class Solution:
    def hasSameDigits(self, s: str) -> bool:
        while len(s) > 2:
            new_s = []
            for i in range(len(s) - 1):
                new_digit = (int(s[i]) + int(s[i + 1])) % 10
                new_s.append(str(new_digit))
            s = ''.join(new_s)
        return s[0] == s[1]
```
['Python3']