Created
July 18, 2020 02:00
-
-
Save KatUser/8ac603f3775331e6f7f2de2c9092ab0f to your computer and use it in GitHub Desktop.
Ceasar_code_ru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rus_alphabet = [x for x in range(ord('а'), ord('я') + 1)] | |
n = int(input()) | |
s = 'Блажен, кто верует, тепло ему на свете!' | |
for i in s: | |
if ord(i.lower()) in rus_alphabet: | |
print((chr(ord(i)+n)),end ='') | |
else: | |
print(i, end='') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment