Skip to content

Conversation

eediallo
Copy link

@eediallo eediallo commented Mar 8, 2025

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 COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

@eediallo eediallo added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 8, 2025
Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Looking good - I left a few questions to ponder :)

import argparse

parser = argparse.ArgumentParser(description="Make animals say things")
parser.add_argument('--animal', choices=cowsay.char_names, help="The animal to be saying things", default="cow")
Copy link
Member

Choose a reason for hiding this comment

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

It's not a problem, but is a bit unusual to have mixed quotes (some of the strings on this line are wrapped in 's and others "s) - is there a reason to prefer one over the other? Or a reason you used different ones here?

Copy link
Author

Choose a reason for hiding this comment

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

No reason to be honest. Python accept both. I know I should pick one and be consistent with it.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense :) Personally I prefer "s because it's more often that I write a string containing a ' than a ", e.g. I will often write a string literal like "I don't know" but I less often write a string literal like 'I said "hello"'

@illicitonion illicitonion 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. labels Mar 18, 2025
@illicitonion illicitonion added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 18, 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