Skip to content

Commit 1f6ef33

Browse files
Farazul HodaFarazul Hoda
Farazul Hoda
authored and
Farazul Hoda
committed
REVERSED the changes for Python/ciphers/caesar_cipher.py
1 parent 2e05db8 commit 1f6ef33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ciphers/caesar_cipher.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ def brute_force(input_string: str, alphabet: str | None = None) -> dict[int, str
188188
>>> brute_force("jFyuMy xIH'N vLONy zILwy Gy!")[20]
189189
"Please don't brute force me!"
190190
191-
>>> brute_force("sample text") # the function expects a string as the first argument
191+
>>> brute_force(1)
192+
Traceback (most recent call last):
193+
TypeError: 'int' object is not iterable
192194
"""
193195
# Set default alphabet to lower and upper case english chars
194196
alpha = alphabet or ascii_letters

0 commit comments

Comments
 (0)