def binaryPallindrome(num):
     binary = bin(num)
     binary = binary[2:]
     return binary == binary[-1::-1]
if __name__ == "__main__":
    num = int(input('Enter a number:'))
    print(binaryPallindrome(num))

9ea9195ec41f564b1089b4f0b3745bd6ec2df5d0
<mask token>

def binaryPallindrome(num):
    binary = bin(num)
    binary = binary[2:]
    return binary == binary[-1::-1]


<mask token>

def binaryPallindrome(num):
    binary = bin(num)
    binary = binary[2:]
    return binary == binary[-1::-1]


if __name__ == '__main__':
    num = int(input('Enter a number:'))
    print(binaryPallindrome(num))

def binaryPallindrome(num):
     binary = bin(num)
     binary = binary[2:]
     return binary == binary[-1::-1]
if __name__ == "__main__":
    num = int(input('Enter a number:'))
    print(binaryPallindrome(num))
