Skip to content

Conversation

sheetalkharab
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

code for ls, wc, cat

Questions

Ask any questions you have for your reviewer.

@sheetalkharab sheetalkharab added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 7, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 19, 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 work so far on this. I've left some comments to help

# set argument parser
parser = argparse.ArgumentParser(description="Python implementation of cat command")

# to number all lines

Choose a reason for hiding this comment

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

If these comments were not here, would it be obvious what these lines of code were doing?

Choose a reason for hiding this comment

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

What is the purpose of the -1 argument here? Can you see any issues regarding your implementation with -1?

Choose a reason for hiding this comment

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

There are a couple of issues here:

  • Think about all the combinations of arguments a user might use - do you spot any issues?
  • In your code there seems to be some duplication. Can you find where it is and develop a solution?

@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 Aug 19, 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

01 Implement shell tools (cat, ls, wc) in Python
2 participants