From cb54adaaf894add962c95c2b6a7b3fdf6ae497f1 Mon Sep 17 00:00:00 2001 From: Emilianouz <135679131+Emilianouz@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:45:10 +0000 Subject: [PATCH 1/2] Implementing Cowsay in python, by using cowsay, argparse libraries. --- .gitignore | 4 ++++ .vscode/settings.json | 5 +++++ implement-cowsay/cow-laughing.py | 33 ++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 implement-cowsay/cow-laughing.py diff --git a/.gitignore b/.gitignore index 3c3629e64..ec685bab8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ node_modules +implement-cowsay/.venv +**/package.json +**/package-lock.json +implement-cowsay/requirements.txt \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..b242572ef --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "githubPullRequests.ignoredPullRequestBranches": [ + "main" + ] +} \ No newline at end of file diff --git a/implement-cowsay/cow-laughing.py b/implement-cowsay/cow-laughing.py new file mode 100644 index 000000000..182535907 --- /dev/null +++ b/implement-cowsay/cow-laughing.py @@ -0,0 +1,33 @@ +import argparse +import cowsay + + +def main(): + animals = cowsay.char_names + + parser = argparse.ArgumentParser( + description="Make animals saying things." + ) + + parser.add_argument( + "message", + nargs="+", + help="The message to say.", + ) + + parser.add_argument( + "--animal", + choices=animals, + help="The animal to be saying things.", + default="cow", + ) + + args = parser.parse_args() + msg = " ".join(args.message) + + output = cowsay.get_output_string(args.animal, msg) + print(output) + + +if __name__ == "__main__": + main() \ No newline at end of file From bf48820c9f1d76d012f28ebbe9672015ecb076fb Mon Sep 17 00:00:00 2001 From: Emilianouz <135679131+Emilianouz@users.noreply.github.com> Date: Sat, 14 Feb 2026 16:28:14 +0000 Subject: [PATCH 2/2] Remove unwanted file --- .vscode/settings.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b242572ef..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "githubPullRequests.ignoredPullRequestBranches": [ - "main" - ] -} \ No newline at end of file