summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar.py b/cesar.py
index e9381d7..15d7ce2 100644
--- a/cesar.py
+++ b/cesar.py
@@ -1,6 +1,7 @@
-def decalage(lettre,clef):
- liste=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
+import string
+def decalage(lettre,clef):
+ liste=list(string.ascii_lowercase)*2 + list(string.ascii_uppercase)*2
if lettre not in liste:
return lettre
else: