Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rus = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя'
- abr = 'ÀÁÂÃÄżÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ÷ØÙÚÛÜÝÞŸàáâãäå¼æçèéêëìíîïðñòóôõö÷øùúûüýþÿ'
- text = input()
- dictionary = dict()
- for c in text:
- if c in rus:
- dictionary = dict(zip(rus, abr))
- break
- elif c in abr:
- dictionary = dict(zip(abr, rus))
- break
- print(''.join([dictionary.get(c, c) for c in text]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement