i think this is the easy way to understand for the beginner but not the optimize solution
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def isBalanced(self, num: str) -> bool:
        odd=''
        even=''
        for i in range(len(num)):
            if i%2==0:
                even+=num[i]   
            else:
                odd+=num[i]
        eSum=0
        for i in even:
            eSum+=int(i)
        osum=0
        for i in odd:
            osum+=int(i)
        if eSum == osum:
            flag = True
        else:
            flag = False
        return flag
```
['Python3']