what inbuilt function can be used to generate intermediate results in list while checking palindromes in it code example Example: string palindrome in python checking palindrone program