Used-list-instead-of-string-in-rot13.py-and-removed-n

This commit is contained in:
MadhavGupta1506 2024-11-09 16:25:36 +05:30
parent 1f681f5b97
commit 1a61d46d1d

View File

@ -9,7 +9,7 @@ def dencrypt(s: str) -> str:
>>> dencrypt(s) == msg >>> dencrypt(s) == msg
True True
""" """
out = [] out:list[str] = []
n = 13 n = 13
for c in s: for c in s:
if "A" <= c <= "Z": if "A" <= c <= "Z":