We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4a4586 + c192308 commit 5ca4c46Copy full SHA for 5ca4c46
1 file changed
atbash-cipher/atbash_cipher.py
@@ -21,9 +21,9 @@ def encode(plain_text: str) -> str:
21
:returns: Encoded text (grouped in 5-character blocks when length >= 5).
22
:rtype: str
23
"""
24
- temp_txt: list[str] = [
+ temp_txt: str = "".join(
25
_replace(char.lower()) for char in plain_text if char.isalnum()
26
- ]
+ )
27
return " ".join(
28
"".join(temp_txt[i : i + 5]) for i in range(0, len(temp_txt), 5)
29
)
0 commit comments