diff options
| -rw-r--r-- | cesar.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |
