So, basically I want to check if a string is palindrome or not
I know I can simply use
def palindrome(n): return n == n[::-1] It works fine, but if I want a string, for example "A cat, one crab, lol: barcenotaca." to be true as well, what can I do?