Python Simple Approach


#1

def isPalindrome(self, A):

   return int(bool(int(str(A)) == int(str(A)[::-1]) )) if A>=0 else 0