Easy Python 3.xx Solution


#1

class Solution:
# @param A : string
# @return an integer
def power(self, A):
A = bin(int(A))[3:]
A = list(set(A))
if A == [‘0’]:
return 1
else:
return 0