Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1f681f5

Browse files
committedNov 8, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ff77c1 commit 1f681f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ciphers/rot13.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ def dencrypt(s: str) -> str:
1010
True
1111
"""
1212
out = []
13-
n=13
13+
n = 13
1414
for c in s:
1515
if "A" <= c <= "Z":
1616
out += chr(ord("A") + (ord(c) - ord("A") + n) % 26)
1717
elif "a" <= c <= "z":
1818
out += chr(ord("a") + (ord(c) - ord("a") + n) % 26)
1919
else:
2020
out += c
21-
return ''.join(out)
21+
return "".join(out)
2222

2323

2424
def main() -> None:

0 commit comments

Comments
 (0)
Please sign in to comment.