def is_palindrome(n): return str(n)[:len(str(n))//2] == str(n)[-1:(len(str(n))-1)//2:-1]
Sign in to make a reply
Macyrate