Skip to content

Assignment 2#2

Open
deeqa-s wants to merge 4 commits intoassignment_onefrom
assignment-2
Open

Assignment 2#2
deeqa-s wants to merge 4 commits intoassignment_onefrom
assignment-2

Conversation

@deeqa-s
Copy link
Copy Markdown
Owner

@deeqa-s deeqa-s commented Dec 8, 2025

2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I added code to address the assignment requirements.

What did you learn from the changes you have made?

Practicing with file IO, simple NumPy array functions

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

The given approach worked (I think!) so I didn't feel the need to try something else.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

No challenges.

How were these changes tested?

Compared manual calculation of mean/max/min from the datasets to confirm expected results from the Python code

A reference to a related issue in your repository (if applicable)

None.

Checklist

  • [x ] I can confirm that my changes are working as intended

Copy link
Copy Markdown

@Aditya-k-23 Aditya-k-23 left a comment

Choose a reason for hiding this comment

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

Your code meets the some assignment requirements and but needs further improvement
Here are some suggestions:

  • For Q1, you need to store the file contents in a variable using readlines and print the entire contents of the file using a for loop. In your current implementation, you have only printed the first line of the file.
  • For Q2, the indentation is improper for both elif branches.
    Please fix the above and resubmit your assignment for it to be considered complete.

@deeqa-s deeqa-s requested a review from Aditya-k-23 December 9, 2025 16:34
@deeqa-s
Copy link
Copy Markdown
Owner Author

deeqa-s commented Dec 9, 2025

Hello @Aditya-k-23, thank you for the suggestions. I've made the changes, do I need to create another PR?

Copy link
Copy Markdown

@Aditya-k-23 Aditya-k-23 left a comment

Choose a reason for hiding this comment

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

Thank you for incorporating feedback, this looks good! Your assignment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants