Skip to content

Conversation

@fatmaevin
Copy link

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

@fatmaevin fatmaevin added 📅 Sprint 4 Assigned during Sprint 4 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Dec 8, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Dec 23, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start. I have left some comments. Also, can you include a requirements file so I know which library you intend to use?

if animal not in animals:
print(f"Invalid animal. Supported animals are: {', '.join(animals)}")
exit(1)
cowsay.char_funcs[animal](args.text)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I give my arguments as plain text, without quotes?


parser = argparse.ArgumentParser(description="implement Cowsay command")
parser.add_argument("text", help="Text to be displayed")
parser.add_argument("--animal", help="Animal to say the text", default="cow")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you get the help to show the list of possible animals?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 4 Assigned during Sprint 4 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants