From dfd68eb97e71ffe1f693526ba3daddd4c9558ce5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Aug 2019 14:39:57 +0300 Subject: Did Caeser cypher task (karan/Projects) in Python --- Python/Beginner training/Tasks.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'Python/Beginner training/Tasks.py') diff --git a/Python/Beginner training/Tasks.py b/Python/Beginner training/Tasks.py index d60a8bf..3ba4354 100644 --- a/Python/Beginner training/Tasks.py +++ b/Python/Beginner training/Tasks.py @@ -65,28 +65,8 @@ def Factoriel(): print(final_int) -def CaesarCypher(): - while True: - key = input("Type a key: ") - msg = input("Type a message: ") - - decoded = [] ; encoded = [] - for c in msg: - decoded.append(c - key) - encoded.append(c + key) - - print(end="Decoded message: ") - for c in decoded: - print(end=c) - print() - - print(end="Encoded message") - for c in encoded: - print(end=c) - #Divide() #Histogram() #NumberMatrix() -#Factoriel() -CaesarCypher() \ No newline at end of file +#Factoriel() \ No newline at end of file -- cgit v1.2.3