LC 0009 [E] Palindrome Number - ALawliet/algorithms GitHub Wiki

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