class Solution:
def isPalindrome(self, x: int) -> bool:
x = str(x)
lenth = len(x)
for i in range(lenth//2):
if x[i] != x[lenth-i-1]:
return False
return True
class Solution:
def isPalindrome(self, x: int) -> bool:
if x < 0 and x%10==0:
return False
x = str(x)
if x == x[::-1]:
return True
return False