From c79e97274e59e34fedd07dd42dd7537ac1040518 Mon Sep 17 00:00:00 2001 From: Luke-Manyamazi Date: Thu, 14 Aug 2025 13:15:53 +0200 Subject: [PATCH 1/2] fixed space --- implement-cowsay/cow.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 implement-cowsay/cow.py diff --git a/implement-cowsay/cow.py b/implement-cowsay/cow.py new file mode 100644 index 00000000..ecf1f2c9 --- /dev/null +++ b/implement-cowsay/cow.py @@ -0,0 +1,30 @@ + +import argparse +import cowsay + +def main(): + animals = sorted(cowsay.char_names) + + parser = argparse.ArgumentParser( + prog='cowsay', + description='Make animals say things' + ) + parser.add_argument( + '--animal', + choices=animals, + default='cow', + help='The animal to be saying things.' + ) + parser.add_argument( + 'message', + nargs='+', + help='The message to say.' + ) + + args = parser.parse_args() + text = " ".join(args.message) + + getattr(cowsay, args.animal)(text) + +if __name__ == '__main__': + main() From 9749155ce12dc54c7d5123b407db5131e48cc6ef Mon Sep 17 00:00:00 2001 From: Luke Manyamazi Date: Mon, 13 Oct 2025 20:18:45 +0200 Subject: [PATCH 2/2] installed the requirements.txt file that stores program requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..cc557103 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +cowsay \ No newline at end of file