class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if str(x)[::-1] == str(x):
return True
return False
class Solution:
def isPalindrome(self, x):
"""
:type x: int
:rtype: bool
"""
if str(x)[::-1] == str(x):
return True
return False