Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def translate(text):
- global translated_text
- translated_text = ' '.join(
- ''.join(
- letter for letter in text if letter.lower()
- not in'аеёиоуыэюя.!?,:;-\'"'
- ).split()
- )
- ----------------------------------------------------------
- Name = ''
- Vacation = ''
- def setup_profile(name, vacation):
- global Name, Vacation
- Name = name
- Vacation = vacation
- def print_application_for_leave():
- global Name, Vacation
- print(f'Заявление на отпуск в период {Vacation}. {Name}', sep='')
- def print_holiday_money_claim(amount):
- global Name
- print(f'Прошу выплатить {amount} отпускных денег. {Name}', sep='')
- def print_attorney_letter(to):
- global Name, Vacation
- print(f'На время отпуска в период {Vacation}', sep='', end='')
- print(f' моим заместителем назначается {to}. {Name}', sep='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement