p004.py
def is_palindrome(n):
    """Determine whether n is palindrome."""
    # Convert the given number into list.
    number_original = list(map(int, str(n)))

    # First, store a copy of the list of original number.
    number_reversed = number_original[:]
    # Then, reverse the list.
    number_reversed.reverse()

    return number_original == number_reversed
Determine whether n is palindrome.
Determine whether n is palindrome.
Determine whether n is palindrome .
def is_palindrome(n):
    number_original = list(map(int, str(n)))
    number_reversed = number_original[:]
    number_reversed.reverse()
    return number_original == number_reversed
def is_palindrome ( n ) : number_original = list ( map ( int , str ( n ) ) ) number_reversed = number_original [ : ] number_reversed . reverse ( ) return number_original == number_reversed
Determine whether n is palindrome.
Determine whether n is palindrome .
"""Determine whether n is palindrome.""" # Convert the given number into list. # First, store a copy of the list of original number. # Then, reverse the list.
n