how to check for palindrome using python logic,str(n) == str(n)[::-1]