Skip to content

Commit 319d914

Browse files
committed
Make more concrete exercise suggestions for part 4
1 parent 5d1d6b3 commit 319d914

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

part-4.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,13 @@
417417
"cell_type": "markdown",
418418
"metadata": {},
419419
"source": [
420-
"**Extra Credit:** Try using a list comprehension in the translate function.\n",
420+
"**Exercises:**\n",
421+
"\n",
422+
"1. Make a new py file and put that translate function in the file. Use the print function to print out some examples of using the function.\n",
423+
"\n",
424+
"2. Refactor the translate function to use a list comprehension.\n",
425+
"\n",
426+
"3. There are lots of ways to write that translate function. Just for fun, see if you can write the whole translate function in one line.\n",
421427
"\n",
422428
"**Note:** Typing out the exercises for the next section, \"Sets\", is optional. If your brain is melting, feel free to sit back, relax, and enjoy the rest of the lecture."
423429
]

0 commit comments

Comments
 (0)