def is_palindrome(n): n_rev='' for i in str(n): n_rev=i+n_rev return str(n) == n_rev
Sign in to make a reply
Phioton