Skip to content

Commit e9e17ab

Browse files
committed
Updating the notebooks
1 parent 7044c39 commit e9e17ab

File tree

1 file changed

+34
-19
lines changed

1 file changed

+34
-19
lines changed

chapters/chap04.ipynb

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@
10801080
},
10811081
{
10821082
"cell_type": "markdown",
1083-
"id": "d22e5334",
1083+
"id": "3a56643b",
10841084
"metadata": {},
10851085
"source": [
10861086
"### Exercise\n",
@@ -1091,7 +1091,7 @@
10911091
{
10921092
"cell_type": "code",
10931093
"execution_count": 57,
1094-
"id": "ee4a5c6f",
1094+
"id": "be86eb71",
10951095
"metadata": {
10961096
"tags": []
10971097
},
@@ -1141,8 +1141,8 @@
11411141
},
11421142
{
11431143
"cell_type": "code",
1144-
"execution_count": 51,
1145-
"id": "89ce198a",
1144+
"execution_count": null,
1145+
"id": "f8cbf549",
11461146
"metadata": {
11471147
"tags": []
11481148
},
@@ -1156,17 +1156,24 @@
11561156
"jump(2*size)\n",
11571157
"draw_pie(6, size)\n",
11581158
"jump(2*size)\n",
1159-
"draw_pie(7, size)\n",
1160-
"\n",
1161-
"\n",
1162-
"with open(\"jupyturtle_pie.svg\", \"w\") as svg_file:\n",
1163-
" svg_content = turtle.get_SVG()\n",
1164-
" svg_file.write(svg_content)"
1159+
"draw_pie(7, size)"
1160+
]
1161+
},
1162+
{
1163+
"cell_type": "code",
1164+
"execution_count": 51,
1165+
"id": "89ce198a",
1166+
"metadata": {
1167+
"tags": []
1168+
},
1169+
"outputs": [],
1170+
"source": [
1171+
"# Solution goes here"
11651172
]
11661173
},
11671174
{
11681175
"cell_type": "markdown",
1169-
"id": "9ab5d08b",
1176+
"id": "e35f613a",
11701177
"metadata": {},
11711178
"source": [
11721179
"### Exercise\n",
@@ -1177,7 +1184,7 @@
11771184
{
11781185
"cell_type": "code",
11791186
"execution_count": 58,
1180-
"id": "f00b40f9",
1187+
"id": "c8095531",
11811188
"metadata": {
11821189
"tags": []
11831190
},
@@ -1232,8 +1239,8 @@
12321239
},
12331240
{
12341241
"cell_type": "code",
1235-
"execution_count": 53,
1236-
"id": "4cfea3b0",
1242+
"execution_count": null,
1243+
"id": "8e92df6f",
12371244
"metadata": {
12381245
"tags": []
12391246
},
@@ -1255,11 +1262,19 @@
12551262
"angle = 85\n",
12561263
"flower(n, radius, angle)\n",
12571264
"\n",
1258-
"render()\n",
1259-
"\n",
1260-
"with open(\"jupyturtle_flower.svg\", \"w\") as svg_file:\n",
1261-
" svg_content = turtle.get_SVG()\n",
1262-
" svg_file.write(svg_content)"
1265+
"render()"
1266+
]
1267+
},
1268+
{
1269+
"cell_type": "code",
1270+
"execution_count": 53,
1271+
"id": "4cfea3b0",
1272+
"metadata": {
1273+
"tags": []
1274+
},
1275+
"outputs": [],
1276+
"source": [
1277+
"# Solution goes here"
12631278
]
12641279
},
12651280
{

0 commit comments

Comments
 (0)