Skip to content

Commit 0aec0a6

Browse files
committed
Fixing after editing
1 parent 1397c75 commit 0aec0a6

4 files changed

Lines changed: 16 additions & 88 deletions

File tree

‎Week_0_python/.OTTER_LOG‎

-3.34 KB
Binary file not shown.

‎Week_0_python/Intro_assignment.ipynb‎

Lines changed: 12 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {
77
"deletable": false,
88
"editable": false
@@ -49,7 +49,7 @@
4949
},
5050
{
5151
"cell_type": "code",
52-
"execution_count": null,
52+
"execution_count": 3,
5353
"metadata": {},
5454
"outputs": [],
5555
"source": [
@@ -72,19 +72,11 @@
7272
},
7373
{
7474
"cell_type": "code",
75-
"execution_count": 3,
75+
"execution_count": null,
7676
"metadata": {
7777
"tags": []
7878
},
79-
"outputs": [
80-
{
81-
"name": "stdout",
82-
"output_type": "stream",
83-
"text": [
84-
"foo data1.csv\n"
85-
]
86-
}
87-
],
79+
"outputs": [],
8880
"source": [
8981
"# TODO: Create a string from the following variables\n",
9082
"\n",
@@ -94,33 +86,19 @@
9486
"\n",
9587
"\n",
9688
"# TODO: replace ... with string creation\n",
97-
"data_file_name = \"data1.csv\"\n",
89+
"data_file_name = ...\n",
9890
"\n",
9991
"# This is what the autograder will check\n",
100-
"assert data_file_name == \"data1.csv\"\n",
101-
"\n",
102-
"print(f\"foo {data_file_name}\")"
92+
"assert data_file_name == \"data1.csv\"\n"
10393
]
10494
},
10595
{
10696
"cell_type": "code",
107-
"execution_count": 4,
97+
"execution_count": null,
10898
"metadata": {
10999
"tags": []
110100
},
111-
"outputs": [
112-
{
113-
"ename": "AssertionError",
114-
"evalue": "",
115-
"output_type": "error",
116-
"traceback": [
117-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
118-
"\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
119-
"Cell \u001b[0;32mIn[4], line 21\u001b[0m\n\u001b[1;32m 18\u001b[0m new_file_name \u001b[38;5;241m=\u001b[39m file_name\n\u001b[1;32m 20\u001b[0m \u001b[38;5;66;03m# This is what the autograder will check\u001b[39;00m\n\u001b[0;32m---> 21\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m new_file_name \u001b[38;5;241m==\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mfname1.csv\u001b[39m\u001b[38;5;124m\"\u001b[39m\n",
120-
"\u001b[0;31mAssertionError\u001b[0m: "
121-
]
122-
}
123-
],
101+
"outputs": [],
124102
"source": [
125103
"file_name = \"fname.txt\"\n",
126104
"which_one = 1\n",
@@ -147,62 +125,12 @@
147125
},
148126
{
149127
"cell_type": "code",
150-
"execution_count": 9,
128+
"execution_count": null,
151129
"metadata": {
152130
"deletable": false,
153131
"editable": false
154132
},
155-
"outputs": [
156-
{
157-
"data": {
158-
"text/html": [
159-
"<p><strong style='color: red;'><pre style='display: inline;'>Strings</pre> results:</strong></p><p><strong><pre style='display: inline;'>Strings - 1</pre> result:</strong></p><pre> ✅ Test case passed</pre><p><strong><pre style='display: inline;'>Strings - 2</pre> result:</strong></p><pre> ❌ Test case failed\n",
160-
" Trying:\n",
161-
" assert new_file_name == 'fname1.csv'\n",
162-
" Expecting nothing\n",
163-
" **********************************************************************\n",
164-
" Line 1, in Strings 1\n",
165-
" Failed example:\n",
166-
" assert new_file_name == 'fname1.csv'\n",
167-
" Exception raised:\n",
168-
" Traceback (most recent call last):\n",
169-
" File \"/opt/anaconda3/lib/python3.12/doctest.py\", line 1368, in __run\n",
170-
" exec(compile(example.source, filename, \"single\",\n",
171-
" File \"<doctest Strings 1[0]>\", line 1, in <module>\n",
172-
" assert new_file_name == 'fname1.csv'\n",
173-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
174-
" AssertionError\n",
175-
"</pre>"
176-
],
177-
"text/plain": [
178-
"Strings results:\n",
179-
" Strings - 1 result:\n",
180-
" ✅ Test case passed\n",
181-
"\n",
182-
" Strings - 2 result:\n",
183-
" ❌ Test case failed\n",
184-
" Trying:\n",
185-
" assert new_file_name == 'fname1.csv'\n",
186-
" Expecting nothing\n",
187-
" **********************************************************************\n",
188-
" Line 1, in Strings 1\n",
189-
" Failed example:\n",
190-
" assert new_file_name == 'fname1.csv'\n",
191-
" Exception raised:\n",
192-
" Traceback (most recent call last):\n",
193-
" File \"/opt/anaconda3/lib/python3.12/doctest.py\", line 1368, in __run\n",
194-
" exec(compile(example.source, filename, \"single\",\n",
195-
" File \"<doctest Strings 1[0]>\", line 1, in <module>\n",
196-
" assert new_file_name == 'fname1.csv'\n",
197-
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
198-
" AssertionError"
199-
]
200-
},
201-
"execution_count": 9,
202-
"metadata": {},
203-
"output_type": "execute_result"
204-
}
205-
],
133+
"outputs": [],
206134
"source": [
207135
"grader.check(\"Strings\")"
208136
]
@@ -404,7 +332,7 @@
404332
],
405333
"metadata": {
406334
"kernelspec": {
407-
"display_name": "base",
335+
"display_name": "Python 3",
408336
"language": "python",
409337
"name": "python3"
410338
},
@@ -418,7 +346,7 @@
418346
"name": "python",
419347
"nbconvert_exporter": "python",
420348
"pygments_lexer": "ipython3",
421-
"version": "3.12.4"
349+
"version": "3.12.7"
422350
},
423351
"otter": {
424352
"OK_FORMAT": true,

‎Week_1_data_structures/Lab_1_data_analysis.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@
851851
],
852852
"metadata": {
853853
"kernelspec": {
854-
"display_name": "base",
854+
"display_name": "Python 3",
855855
"language": "python",
856856
"name": "python3"
857857
},
@@ -865,7 +865,7 @@
865865
"name": "python",
866866
"nbconvert_exporter": "python",
867867
"pygments_lexer": "ipython3",
868-
"version": "3.11.7"
868+
"version": "3.12.7"
869869
},
870870
"otter": {
871871
"OK_FORMAT": true,

‎Week_1_data_structures/lec_act_1_data_structures.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@
626626
],
627627
"metadata": {
628628
"kernelspec": {
629-
"display_name": "base",
629+
"display_name": "Python 3",
630630
"language": "python",
631631
"name": "python3"
632632
},
@@ -640,7 +640,7 @@
640640
"name": "python",
641641
"nbconvert_exporter": "python",
642642
"pygments_lexer": "ipython3",
643-
"version": "3.11.7"
643+
"version": "3.12.7"
644644
},
645645
"otter": {
646646
"OK_FORMAT": true,

0 commit comments

Comments
 (0)