Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Integer Palindrome by Sim0000
def int_palindrome(number: int) -> bool:
return number == int(str(number)[::-1])
print("Example:")
print(int_palindrome(151))
assert int_palindrome(151) == True
assert int_palindrome(212) == True
assert int_palindrome(321) == False
print("The mission is done! Click 'Check Solution' to earn rewards!")
Aug. 24, 2022