Skip to content

Commit 2cd34f4

Browse files
authored
Update caesar_cipher.py
1 parent 09025dd commit 2cd34f4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Caesar-Cipher/caesar_cipher.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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']
1+
import string as st
2+
3+
letter_list=st.ascii_lowercase
4+
alphabet=[letter for letter in letter_list]*2
45

56
def caesar(text1, shift1, direction1):
67
end_text = ''

0 commit comments

Comments
 (0)