def is_palindrome(n): a = str(n) b = '' for x in reversed(a): b += x b = int(b) return b == n
Sign in to make a reply
rainux