Conversation
There was a problem hiding this comment.
Change Requested
You're making solid progress!
Part 1: The assignment is asking you to print all lines from the first file. Right now, your code opens the CSV file at all_paths[0], but then loops through all_paths. Each time the loop runs, it reads the next line from the first file — so you end up printing the first 12 lines of the first file (since there are 12 files in all_paths). Instead of looping through all_paths, you should loop through the variable returned by readlines() or readline() to print all lines from the first file.
Part 3: The function should take a single CSV file path, not a list — so no loop is needed. Also, be sure to call patient_summary on the input parameter, not all_paths[0].
Quick reminder: please remember to include a brief PR description in future submissions to summarize your pull request.
I have edited the comments to include more details. Please feel free to let me know if further clarification is needed.
|
Made requested revisions to assignment 2 for parts 1 and 3. Edited the loop in part 1 and removed the loop in part 3. |
xindizhang
left a comment
There was a problem hiding this comment.
Great work! No further changes needed.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist