Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. def translate(text):
  2. global translated_text
  3. translated_text = ' '.join(
  4. ''.join(
  5. letter for letter in text if letter.lower()
  6. not in'аеёиоуыэюя.!?,:;-\'"'
  7. ).split()
  8. )
  9. ----------------------------------------------------------
  10. Name = ''
  11. Vacation = ''
  12.  
  13.  
  14. def setup_profile(name, vacation):
  15. global Name, Vacation
  16. Name = name
  17. Vacation = vacation
  18.  
  19.  
  20. def print_application_for_leave():
  21. global Name, Vacation
  22. print(f'Заявление на отпуск в период {Vacation}. {Name}', sep='')
  23.  
  24.  
  25. def print_holiday_money_claim(amount):
  26. global Name
  27. print(f'Прошу выплатить {amount} отпускных денег. {Name}', sep='')
  28.  
  29.  
  30. def print_attorney_letter(to):
  31. global Name, Vacation
  32. print(f'На время отпуска в период {Vacation}', sep='', end='')
  33. print(f' моим заместителем назначается {to}. {Name}', sep='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement