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