summaryrefslogtreecommitdiff
path: root/rot13.py
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-10-12 17:41:22 +0200
committerjerome <jerome@xlinfo.fr>2025-10-12 17:41:22 +0200
commitba41fa46e69dbb264dfbed1b9fca5daab44a07c7 (patch)
treed9c6eeee3a32b0d5a004f2846882868c29ba531c /rot13.py
parentec7b5913698416b775665a871a0d4102b47c680c (diff)
downloadpython-ba41fa46e69dbb264dfbed1b9fca5daab44a07c7.tar.gz
python-ba41fa46e69dbb264dfbed1b9fca5daab44a07c7.zip
organisation
Diffstat (limited to 'rot13.py')
-rw-r--r--rot13.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/rot13.py b/rot13.py
deleted file mode 100644
index b2730f1..0000000
--- a/rot13.py
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env python
-
-import string
-
-def rot13(char):
- liste = list(string.ascii_lowercase)*2 + list(string.ascii_uppercase)*2
- if char not in liste:
- return char
- else:
- return liste[liste.index(char)+13]
-
-msg = input("Votre message : ")
-msgChiffre = str()
-for lettre in msg:
- msgChiffre = msgChiffre + rot13(lettre)
-print(msgChiffre)