python3 Solution
\n\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        s=bin(n)[2:][::-1]\n        even=0\n        odd=0\n        for i in range(len(s)):\
\n```\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        s=bin(n)[2:][::-1]\n        even=0\n        odd=0\n        for i in range(len(s)):\n            if i%2==1 and s[i]==\'1\':\n                odd+=1\n\n            if i%2==0 and s[i]==\'1\':\n                even+=1\n\n\n        return [even,odd]            \n```
['Python', 'Python3']