2 parents 0a3401b + a76bd22 commit cdb64d5Copy full SHA for cdb64d5
1 file changed
CaesarCipher/Python/CaesarCipher.py
@@ -0,0 +1,7 @@
1
+letters = input()
2
+rot = int(input())
3
+for i in range(len(letters)):
4
+ print(letters[(i + rot) % len(letters)], end='')
5
+print('\n', letters, sep='')
6
7
+ print(letters[(i - rot) % len(letters)], end='')
0 commit comments