Skip to content

Commit 5ca4c46

Browse files
authored
Merge pull request #174 from ikostan/main
Merge from master
2 parents f4a4586 + c192308 commit 5ca4c46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

atbash-cipher/atbash_cipher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def encode(plain_text: str) -> str:
2121
:returns: Encoded text (grouped in 5-character blocks when length >= 5).
2222
:rtype: str
2323
"""
24-
temp_txt: list[str] = [
24+
temp_txt: str = "".join(
2525
_replace(char.lower()) for char in plain_text if char.isalnum()
26-
]
26+
)
2727
return " ".join(
2828
"".join(temp_txt[i : i + 5]) for i in range(0, len(temp_txt), 5)
2929
)

0 commit comments

Comments
 (0)