From 1d5f7307d2dd4dc2af72861943f3e9ed2849b1cf Mon Sep 17 00:00:00 2001 From: pythonboi Date: Fri, 10 Sep 2021 02:56:10 -0400 Subject: [PATCH] adjust the move variable from list to string and make the shift variable better --- Caesar_Cipher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Caesar_Cipher.py b/Caesar_Cipher.py index a404a20..ad5da65 100644 --- a/Caesar_Cipher.py +++ b/Caesar_Cipher.py @@ -8,12 +8,12 @@ def encrypt(text, shift): count_text = len(text) - move = [] + move = '' for m in range(0, count_text): move += alphabet[shift] alphabet[shift] = alphabet[shift + 1] - shift = shift + 1 + shift += 1 print(move)