mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 08:17:01 +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
2faf238491
commit
668ddd5e05
|
@ -1,7 +1,7 @@
|
|||
def dencrypt(s: str) -> str:
|
||||
"""
|
||||
Applies ROT13 encryption or decryption to the input string.
|
||||
|
||||
|
||||
Example usage:
|
||||
>>> msg = "My secret bank account number is 173-52946 so don't tell anyone!!"
|
||||
>>> encrypted = dencrypt(msg)
|
||||
|
@ -20,6 +20,7 @@ def dencrypt(s: str) -> str:
|
|||
result.append(c)
|
||||
return "".join(result)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
s0 = input("Enter message: ")
|
||||
|
||||
|
@ -32,5 +33,6 @@ def main() -> None:
|
|||
|
||||
if __name__ == "__main__":
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user