Skip to content

Commit 73126ad

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 85ad2e8 commit 73126ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ciphers/rot13.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def dencrypt(s: str) -> str:
99
>>> dencrypt(s) == msg
1010
True
1111
"""
12-
n=13
13-
out:list[str] = []
12+
n = 13
13+
out: list[str] = []
1414
for c in s:
1515
if "A" <= c <= "Z":
1616
out += chr(ord("A") + (ord(c) - ord("A") + n) % 26)
@@ -21,7 +21,6 @@ def dencrypt(s: str) -> str:
2121
return "".join(out)
2222

2323

24-
2524
def main() -> None:
2625
s0 = input("Enter message: ")
2726

0 commit comments

Comments
 (0)