human
How to check for palindrome using Python logic
assistant
Here is some code to check if string `str` is palindrome

str(n) == str(n)[::-1]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.