#Check whther they are the same after reverse in String format
class Solution:
    def isPalindrome(self, x: int) -> bool:
        right=str(x)
        reverse=right[::-1]
        return right==reverse
        
