From 9a47a120f45513a2d04e1face1eedf89115af3f7 Mon Sep 17 00:00:00 2001 From: kaylielau Date: Fri, 3 May 2024 17:25:01 -0400 Subject: [PATCH] Fix mistake in Assignment 2, Part 3 --- 02_assignments/assignment_2.ipynb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/02_assignments/assignment_2.ipynb b/02_assignments/assignment_2.ipynb index 53752ed5..5b8b03c0 100644 --- a/02_assignments/assignment_2.ipynb +++ b/02_assignments/assignment_2.ipynb @@ -70,7 +70,7 @@ " \"../05_data/assignment_2_data/inflammation_09.csv\",\n", " \"../05_data/assignment_2_data/inflammation_10.csv\",\n", " \"../05_data/assignment_2_data/inflammation_11.csv\",\n", - " \"../05_data/assignment_2_data/inflammation_12.csv\",\n", + " \"../05_data/assignment_2_data/inflammation_12.csv\"\n", "]\n", "```" ] @@ -90,11 +90,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": { "id": "n0m48JsS-nMC" }, - "outputs": [], + "outputs": [ + { + "ename": "SyntaxError", + "evalue": "incomplete input (1182499344.py, line 4)", + "output_type": "error", + "traceback": [ + "\u001b[0;36m Cell \u001b[0;32mIn[1], line 4\u001b[0;36m\u001b[0m\n\u001b[0;31m # YOUR CODE HERE: Iterate through 'contents' using a for loop and print each row for inspection\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m incomplete input\n" + ] + } + ], "source": [ "with open(all_paths[0], 'r') as f:\n", " # YOUR CODE HERE: Use the readline() method to read the .csv file into 'contents'\n", @@ -276,7 +285,7 @@ "outputs": [], "source": [ "# Test out your code here\n", - "# Your output for the first file should be True\n", + "# Your output for the first file should be False\n", "print(detect_problems(all_paths[0]))" ] },