mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Fix grammatical mistakes in simple_keyword_cypher.py
(#6385)
* Fixed grammitical mistake * Update ciphers/simple_keyword_cypher.py Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
This commit is contained in:
parent
7b7b3dd086
commit
2d3985006f
|
@ -21,7 +21,7 @@ def create_cipher_map(key: str) -> dict[str, str]:
|
||||||
:param key: keyword to use
|
:param key: keyword to use
|
||||||
:return: dictionary cipher map
|
:return: dictionary cipher map
|
||||||
"""
|
"""
|
||||||
# Create alphabet list
|
# Create a list of the letters in the alphabet
|
||||||
alphabet = [chr(i + 65) for i in range(26)]
|
alphabet = [chr(i + 65) for i in range(26)]
|
||||||
# Remove duplicate characters from key
|
# Remove duplicate characters from key
|
||||||
key = remove_duplicates(key.upper())
|
key = remove_duplicates(key.upper())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user