def is_palindrome(n: int): s = str(n) for n in range(len(s)//2+1): if s[n] != s[-(n+1)]: return False return True
Sign in to make a reply
亦夜