something = input('Введите текст: ').lower()
forbidden = ('!', '?', ',', ' ')
for i in forbidden:
if i in something:
something.replace(i, '')
if (is_palindrome(something)):
print('Да, это палиндром')
else:
print('Нет, это не палиндром')
c29tZXRoaW5nID0gaW5wdXQoJ9CS0LLQtdC00LjRgtC1INGC0LXQutGB0YI6ICcpLmxvd2VyKCkKZm9yYmlkZGVuID0gKCchJywgJz8nLCAnLCcsICcgJykKCmZvciBpIGluIGZvcmJpZGRlbjoKCWlmIGkgaW4gc29tZXRoaW5nOgoJCXNvbWV0aGluZy5yZXBsYWNlKGksICcnKQoKaWYgKGlzX3BhbGluZHJvbWUoc29tZXRoaW5nKSk6CglwcmludCgn0JTQsCwg0Y3RgtC+INC/0LDQu9C40L3QtNGA0L7QvCcpCmVsc2U6CglwcmludCgn0J3QtdGCLCDRjdGC0L4g0L3QtSDQv9Cw0LvQuNC90LTRgNC+0LwnKQ==