Leetcode

9.palindromeNumber.py

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