From 668ddd5e059c999a386c71a227082aebb2179c77 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 04:23:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ciphers/rot13.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ciphers/rot13.py b/ciphers/rot13.py index fb424d186..2151cda7b 100644 --- a/ciphers/rot13.py +++ b/ciphers/rot13.py @@ -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()