Discuss / Python / 1

def is_palindrome(n): b = n m = 0 while n!=0: a = n%10 n = n//10 m = m*10 + a return (b == m)


  • 1

Reply