Skip to content

Conversation

@aiahibrahim
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@aiahibrahim aiahibrahim added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 5, 2025
@illicitonion illicitonion changed the title Glasgow | 25-SDC-July | Aiah Ibrahim | Sprint 2 | Implement cowsay in Python Glasgow | 25-SDC-July | Aiah Ibrahim | Sprint 4 | Implement cowsay in Python Aug 6, 2025
@DaryaShirokova DaryaShirokova added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 17, 2025
Copy link

@DaryaShirokova DaryaShirokova left a comment

Choose a reason for hiding this comment

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

LGTM! Just a small optional comment.

Comment on lines +27 to +28
say_function = getattr(cowsay, args.animal)
say_function(message)

Choose a reason for hiding this comment

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

You could use get_output_string instead, I'd generally avoid using reflection methods like getattr if there are alternatives as they harm readability: https://pypi.org/project/cowsay/

@DaryaShirokova DaryaShirokova added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants