From 51449606c4663b98faf950d01a2fd023b6967699 Mon Sep 17 00:00:00 2001 From: Salman Khan Date: Mon, 26 Sep 2022 12:47:59 +0500 Subject: [PATCH 1/2] Fixed grammitical mistake --- ciphers/simple_keyword_cypher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ciphers/simple_keyword_cypher.py b/ciphers/simple_keyword_cypher.py index 447bacfc2e6c..6485d622aeec 100644 --- a/ciphers/simple_keyword_cypher.py +++ b/ciphers/simple_keyword_cypher.py @@ -21,7 +21,7 @@ def create_cipher_map(key: str) -> dict[str, str]: :param key: keyword to use :return: dictionary cipher map """ - # Create alphabet list + # Create an alphabet list alphabet = [chr(i + 65) for i in range(26)] # Remove duplicate characters from key key = remove_duplicates(key.upper()) From bd83c560d63d0631baeaed49f909a1a9f453647a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 30 Oct 2022 07:58:55 +0100 Subject: [PATCH 2/2] Update ciphers/simple_keyword_cypher.py Co-authored-by: Caeden Perelli-Harris --- ciphers/simple_keyword_cypher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ciphers/simple_keyword_cypher.py b/ciphers/simple_keyword_cypher.py index 6485d622aeec..1635471aebd1 100644 --- a/ciphers/simple_keyword_cypher.py +++ b/ciphers/simple_keyword_cypher.py @@ -21,7 +21,7 @@ def create_cipher_map(key: str) -> dict[str, str]: :param key: keyword to use :return: dictionary cipher map """ - # Create an alphabet list + # Create a list of the letters in the alphabet alphabet = [chr(i + 65) for i in range(26)] # Remove duplicate characters from key key = remove_duplicates(key.upper())