Created
November 8, 2014 17:58
-
-
Save sarum9in/2cbadd8c196cd1ada875 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/python3 | |
a = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя' | |
s = 'бяэ иыюшт плйэ олявпозлал ъкуёзилмвбёфвозлал оиляэнь ялищхлал' | |
for shift in range(len(a)): | |
for c in s: | |
if c in a: | |
x = a.index(c) | |
y = (x + shift) % len(a) | |
print(a[y], end='') | |
else: | |
print(c, end='') | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment