Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alp = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
- result = "Роскомнадзор запретил букву "
- # Перебор всех символов алфавита
- for c in alp:
- # Проверяем, что в строке result текущая буква не найдена
- if result.find(c) == -1 and result.find(c.upper()) == -1:
- continue
- # Выводим надпись
- print(result + c.upper())
- # Удаляем букву из надписи
- result = result.replace(c, '')
- result = result.replace(c.upper(), '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement