fork(1) download
  1. translatedText = ''
  2.  
  3.  
  4. def translate(text):
  5. global translatedText
  6. a = ['а', 'у', 'о', 'ы', 'и', 'э', 'я', 'ю', 'ё', 'е',
  7. 'А', 'У', 'О', 'Ы', 'И', 'Э', 'Я', 'Ю', 'Ё', 'Е',
  8. '.', ',', '-']
  9. for i in range(len(text) - 1):
  10. if a.count(text[i]) == 0:
  11. translatedText = translatedText + text[i]
  12. translatedText = ' '.join(translatedText.split())
  13. return translatedText
Success #stdin #stdout 0.01s 7136KB
stdin
разделяются ровно одним пробелом
stdout
Standard output is empty