mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-07 22:35:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
1ff77c1612
commit
1f681f5b97
@ -10,7 +10,7 @@ def dencrypt(s: str) -> str:
|
||||
True
|
||||
"""
|
||||
out = []
|
||||
n=13
|
||||
n = 13
|
||||
for c in s:
|
||||
if "A" <= c <= "Z":
|
||||
out += chr(ord("A") + (ord(c) - ord("A") + n) % 26)
|
||||
@ -18,7 +18,7 @@ def dencrypt(s: str) -> str:
|
||||
out += chr(ord("a") + (ord(c) - ord("a") + n) % 26)
|
||||
else:
|
||||
out += c
|
||||
return ''.join(out)
|
||||
return "".join(out)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user