Skip to content

Commit b559c42

Browse files
Fixed an incorrect example in control flow
1 parent cbea7e6 commit b559c42

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

individual_modules/introduction_to_python/control_flow.ipynb

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,51 @@
218218
},
219219
{
220220
"cell_type": "code",
221-
"execution_count": 1,
222-
"id": "887b2841-3115-4819-b734-7cc094034ab3",
223-
"metadata": {},
221+
"execution_count": null,
222+
"id": "5059803d-6218-4b8b-a701-2356cb164761",
223+
"metadata": {
224+
"editable": true,
225+
"slideshow": {
226+
"slide_type": ""
227+
},
228+
"tags": [
229+
"remove-output"
230+
]
231+
},
224232
"outputs": [],
225233
"source": [
226-
"if False:\n",
227-
" if 4 > 5:\n",
228-
" print('A')\n",
229-
" elif 4 == 5:\n",
230-
" print('B')\n",
231-
" elif 4 < 5:\n",
232-
" print('C')"
234+
"if 4 > 5:\n",
235+
" print('A')\n",
236+
"elif 4 == 5:\n",
237+
" print('B')\n",
238+
"elif 4 < 5:\n",
239+
" print('C')"
240+
]
241+
},
242+
{
243+
"cell_type": "code",
244+
"execution_count": 2,
245+
"id": "417c7f00-3f5b-415a-9dca-c19f4c5720da",
246+
"metadata": {
247+
"editable": true,
248+
"slideshow": {
249+
"slide_type": ""
250+
},
251+
"tags": [
252+
"remove-output"
253+
]
254+
},
255+
"outputs": [
256+
{
257+
"name": "stdout",
258+
"output_type": "stream",
259+
"text": [
260+
"/Users/lb788/Documents/CfRR/incorrect_example/CfRR_Courses/individual_modules/introduction_to_python\n"
261+
]
262+
}
263+
],
264+
"source": [
265+
"!pwd"
233266
]
234267
},
235268
{

0 commit comments

Comments
 (0)