We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09025dd commit 2cd34f4Copy full SHA for 2cd34f4
Caesar-Cipher/caesar_cipher.py
@@ -1,6 +1,7 @@
1
-alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
2
- 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
3
- 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
+import string as st
+
+letter_list=st.ascii_lowercase
4
+alphabet=[letter for letter in letter_list]*2
5
6
def caesar(text1, shift1, direction1):
7
end_text = ''
0 commit comments