From 80c4a8ef1222ac6f5c836de8c587bf79199737d8 Mon Sep 17 00:00:00 2001 From: Daniel Luo Date: Wed, 17 May 2023 21:30:49 -0400 Subject: [PATCH 1/2] add __main__ around print --- ciphers/mixed_keyword_cypher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ciphers/mixed_keyword_cypher.py b/ciphers/mixed_keyword_cypher.py index 806004faa079..9fba2fb8f585 100644 --- a/ciphers/mixed_keyword_cypher.py +++ b/ciphers/mixed_keyword_cypher.py @@ -64,5 +64,5 @@ def mixed_keyword(key: str = "college", pt: str = "UNIVERSITY") -> str: cypher += d[i] return cypher - -print(mixed_keyword("college", "UNIVERSITY")) +if __name__ == "__main__": + print(mixed_keyword("college", "UNIVERSITY")) From 1467319d2f1f00593901123da439091f88b3bd51 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 May 2023 01:34:45 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ciphers/mixed_keyword_cypher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ciphers/mixed_keyword_cypher.py b/ciphers/mixed_keyword_cypher.py index 9fba2fb8f585..93a0e3acb7b1 100644 --- a/ciphers/mixed_keyword_cypher.py +++ b/ciphers/mixed_keyword_cypher.py @@ -64,5 +64,6 @@ def mixed_keyword(key: str = "college", pt: str = "UNIVERSITY") -> str: cypher += d[i] return cypher + if __name__ == "__main__": print(mixed_keyword("college", "UNIVERSITY"))