Simplest Beginner Friendly Python solution
\n# Code\n\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        s = bin(n)[2:][::-1]\n        a, b = 0, 0\n        for i in range(len(s)):\
\n# Code\n```\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        s = bin(n)[2:][::-1]\n        a, b = 0, 0\n        for i in range(len(s)):\n            if s[i] == \'1\':\n                if i&1:\n                    b+=1\n                else:\n                    a+=1\n        return [a,b]\n```
['Python3']