Easy Binary
\n\n# Code\n\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        x=bin(n)\n        s=x[2:]\n        s=s[::-1]\n        # s=str(n)\n       
\n\n# Code\n```\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        x=bin(n)\n        s=x[2:]\n        s=s[::-1]\n        # s=str(n)\n        l=list(s)\n        ot=[0,0]\n        for i in range(len(s)) :\n            if(l[i]==\'1\' and (i)%2==1) :\n                ot[1]+=1\n            elif(l[i]==\'1\' and i%2==0) :\n                ot[0]+=1\n        return ot\n```
['Python3']