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