From faeba1b36508b89ebf08ef283ba1e1799f72aef8 Mon Sep 17 00:00:00 2001 From: Jak R-S <176810031+jakr-s@users.noreply.github.com> Date: Sat, 14 Mar 2026 21:56:20 +0000 Subject: [PATCH 1/2] chore: add .venv to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3c3629e64..274d04915 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.venv \ No newline at end of file From e238f5dab7765377167301820868f5de1e77cf68 Mon Sep 17 00:00:00 2001 From: Jak R-S <176810031+jakr-s@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:15:54 +0000 Subject: [PATCH 2/2] task: implement cowsay in python --- implement-cowsay/cow.py | 25 +++++++++++++++++++++++++ implement-cowsay/requirements.txt | 1 + 2 files changed, 26 insertions(+) create mode 100644 implement-cowsay/cow.py create mode 100644 implement-cowsay/requirements.txt diff --git a/implement-cowsay/cow.py b/implement-cowsay/cow.py new file mode 100644 index 000000000..a918b83c1 --- /dev/null +++ b/implement-cowsay/cow.py @@ -0,0 +1,25 @@ +import argparse +import cowsay + + +def main(): + parser = argparse.ArgumentParser( + description="Make animals say things", + ) + parser.add_argument( + "--animal", + choices=cowsay.char_names, + default="cow", + help="The animal you want to speak.", + ) + parser.add_argument( + "message", + nargs="+", + help="The message to say.", + ) + + args = parser.parse_args() + print(cowsay.get_output_string(args.animal, " ".join(args.message))) + + +main() diff --git a/implement-cowsay/requirements.txt b/implement-cowsay/requirements.txt new file mode 100644 index 000000000..c6b9ffd0e --- /dev/null +++ b/implement-cowsay/requirements.txt @@ -0,0 +1 @@ +cowsay