Python3
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \nCalculated the length o
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nCalculated the length of a string.  For example, 1234 has length of 4. Got the string of even indices and odd indices.  Calculated the digit sum of the string of even indices and odd indices.  Compared them.\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```python3 []\nclass Solution:\n    def isBalanced(self, num: str) -> bool:\n        digitsum = lambda n: sum(int(digit) for digit in str(n))\n        numstrlength = len(num)\n        even = num[0:numstrlength:2]\n        odd = num[1:numstrlength:2]\n        return digitsum(even) == digitsum(odd)\n        \n```
['Python3']