Skip to content

Commit 74ad47b

Browse files
committed
W5: Formatting and change examples
1 parent 7794b5b commit 74ad47b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

week5/w5.ipynb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"source": [
1818
"In this lecture we will aim to cover:\n",
1919
"- OOP\n",
20-
"- Decorators\n",
21-
"- Exception Handling"
20+
"- Decorators"
2221
]
2322
},
2423
{
@@ -210,7 +209,7 @@
210209
"\n",
211210
"You may have also noticed that this method starts and ends with `__`. \n",
212211
"There are other methods named in a similar way.\n",
213-
"These methods are often called *magic methods* and used to defined very specific behaviours (If you're curious you can find out more [here](https://docs.python.org/3/reference/datamodel.html#special-method-names))."
212+
"These methods are often called *magic methods* and are used to defined very specific behaviours (If you're curious you can find out more [here](https://docs.python.org/3/reference/datamodel.html#special-method-names))."
214213
]
215214
},
216215
{
@@ -239,7 +238,7 @@
239238
"metadata": {},
240239
"outputs": [],
241240
"source": [
242-
"my_person = Person(\"tomas\", 20, \"computer scientist\")\n",
241+
"my_person = Person(\"donald knuth\", 84, \"computer scientist\")\n",
243242
"\n",
244243
"print(my_person.name)\n",
245244
"print(my_person.age)"
@@ -274,7 +273,7 @@
274273
" def introduce(self):\n",
275274
" print(f\"I'm {self.name}, {self.age} years old. I'm a {self.profession}.\")\n",
276275
"\n",
277-
"my_person = Person(\"tomas\", 20, \"computer scientist\")\n",
276+
"my_person = Person(\"donald knuth\", 84, \"computer scientist\")\n",
278277
"my_person.introduce()"
279278
]
280279
},
@@ -305,12 +304,12 @@
305304
" def eat(self, food):\n",
306305
" return \"\"\n",
307306
"\n",
308-
"my_person = Person(\"tomas\", 20, \"computer scientist\")\n",
307+
"my_person = Person(\"donald knuth\", 84, \"computer scientist\")\n",
309308
"my_person.introduce()\n",
310309
"\n",
311310
"\n",
312311
"# DO NOT MODIFY\n",
313-
"assert my_person.eat(\"pasta\") == \"tomas is eating pasta\", \"Test failed: Something went wrong, expected 'tomas is eating pasta'\""
312+
"assert my_person.eat(\"pasta\") == \"donald knuth is eating pasta\", \"Test failed: Something went wrong, expected 'donald knuth is eating pasta'\""
314313
]
315314
},
316315
{
@@ -498,7 +497,7 @@
498497
"cell_type": "markdown",
499498
"metadata": {},
500499
"source": [
501-
"🖋️ ***This week was written by Tomas & Alistair from [Warwick AI](https://warwick.ai/)***"
500+
"🖋️ *This week was written by Tomas & Alistair from [Warwick AI](https://warwick.ai/)*"
502501
]
503502
}
504503
],

0 commit comments

Comments
 (0)