fork download
  1. something = input('Введите текст: ').lower()
  2. forbidden = ('!', '?', ',', ' ')
  3.  
  4. for i in forbidden:
  5. if i in something:
  6. something = something.replace(i, '')
  7.  
  8. if (is_palindrome(something)):
  9. print('Да, это палиндром')
  10. else:
  11. print('Нет, это не палиндром')
Runtime error #stdin #stdout #stderr 0.04s 44680KB
stdin
Standard input is empty
stdout
Введите текст: 
stderr
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "prog.py", line 1, in <module>
    something = input('Введите текст: ').lower()
EOFError