clear logic
Code
# Code
```python3 []
class Solution:
    def isBalanced(self, num: str) -> bool:
        sum_even = 0
        sum_odd = 0
        for i in range(len(num)):
            if i%2==0:
                sum_even += int(num[i])
            else:
                sum_odd += int(num[i])
        return (sum_even==sum_odd)
```
['Python3']