Mar-17-2019, 04:16 AM
(Mar-16-2019, 09:19 PM)ichabod801 Wrote: In your is_palindrome function, you should use the text parameter you passed to the function, and you need to save the replacements back into that, to keep the changes:Got the point, i have understood my mistake, now. Thanks you for helpingfor i in forbidden: if i in text: text = text.replace(i,'') return text == reverse(text)