check if integer is palindrome python code example Example: python palindrome def palindrome(a): return a == a[::-1] palindrome('radar') # True