int인 입력값을 str으로 변환 후, 문자열 슬라이싱을 이용 ([::-1] -> 뒤집어 주는 효과)
class Solution: def isPalindrome(self, x: int) -> bool: res = str(x) if res[::-1] == str(x) : return True else : return False