memory efficient code for palindrome python code example Example: string palindrome in python checking palindrone program