class Solution: def isPalindrome(self , x: int) -> bool: # write code here y = str(x) return y == y[::-1]