python
class Solution:
def isPalindrome(self, x: int) -> bool:
str1 = str(x)
str2 = str1[::-1]
if(str1 == str2):
return True
return False
python
class Solution:
def isPalindrome(self, x: int) -> bool:
str1 = str(x)
str2 = str1[::-1]
if(str1 == str2):
return True
return False