Skip to content
This repository was archived by the owner on Jun 25, 2018. It is now read-only.

Commit 183b742

Browse files
committed
Add long code block to corresponding one liner code
1 parent cf75adc commit 183b742

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Introduction_to_python_day_1_session_3.ipynb

+8
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,14 @@
196196
"outputs": [],
197197
"source": [
198198
"x = 11\n",
199+
"\n",
200+
"if x < 10:\n",
201+
" s = \"Yes\"\n",
202+
"else:\n",
203+
" s = \"No\"\n",
204+
"print(s)\n",
205+
"\n",
206+
"# Could also be written onto one line\n",
199207
"s = \"Yes\" if x < 10 else \"No\"\n",
200208
"print(s)"
201209
]

0 commit comments

Comments
 (0)