@@ -70,7 +70,7 @@ def encrypt(input_string: str, key: int, alphabet: str | None = None) -> str:
7070 >>> encrypt('a lowercase alphabet', 5, 'abcdefghijklmnopqrstuvwxyz')
7171 'f qtbjwhfxj fqumfgjy'
7272 """
73- # Use the provided alphabet if given,
73+ # Use the provided alphabet if given,
7474 # otherwise default to ascii_letters (a-z + A-Z)
7575 alpha = alphabet or ascii_letters
7676
@@ -95,13 +95,13 @@ def encrypt_file(
9595 the encrypted content to the output file.
9696 """
9797
98- # Use the provided alphabet if given;
98+ # Use the provided alphabet if given;
9999 # otherwise default to ascii_letters (a-z + A-Z)
100100 alpha = alphabet or ascii_letters
101101
102102 # Open input file for reading and output file for writing
103103 with open (input_path ) as fin , open (output_path , "w" ) as fout :
104- # Read the input file line by line to
104+ # Read the input file line by line to
105105 # avoid loading the entire file into memory
106106 for line in fin :
107107 # Encrypt the current line using the encrypt function
@@ -198,7 +198,7 @@ def decrypt_file(
198198
199199 # Open input file for reading and output file for writing
200200 with open (input_path ) as fin , open (output_path , "w" ) as fout :
201- # Read the input file line by line
201+ # Read the input file line by line
202202 # to avoid loading the entire file into memory
203203 for line in fin :
204204 # Encrypt the current line using the encrypt function
0 commit comments