diff options
| author | Syndamia <kami02882@gmail.com> | 2019-08-01 14:39:57 +0300 |
|---|---|---|
| committer | Syndamia <kami02882@gmail.com> | 2019-08-01 14:39:57 +0300 |
| commit | dfd68eb97e71ffe1f693526ba3daddd4c9558ce5 (patch) | |
| tree | 74652dbd3dbaf6ae56f8c957ab16b2aa13e23574 /Python/Beginner training/Tasks.py | |
| parent | e173839c44257d0187bb2ec087124db6e2ecde99 (diff) | |
| download | Self-learning-dfd68eb97e71ffe1f693526ba3daddd4c9558ce5.tar Self-learning-dfd68eb97e71ffe1f693526ba3daddd4c9558ce5.tar.gz Self-learning-dfd68eb97e71ffe1f693526ba3daddd4c9558ce5.zip | |
Did Caeser cypher task (karan/Projects) in Python
Diffstat (limited to 'Python/Beginner training/Tasks.py')
| -rw-r--r-- | Python/Beginner training/Tasks.py | 22 |
1 files changed, 1 insertions, 21 deletions
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 |
