Skip to content

Commit e3c520f

Browse files
committed
Update conditional.ipynb
1 parent 8b6e2ae commit e3c520f

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

conditional.ipynb

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,33 @@
11731173
"하지만 예를 들어 `y=2`인 경우엔 결과가 다르다."
11741174
]
11751175
},
1176+
{
1177+
"cell_type": "code",
1178+
"execution_count": 1,
1179+
"metadata": {},
1180+
"outputs": [
1181+
{
1182+
"name": "stdout",
1183+
"output_type": "stream",
1184+
"text": [
1185+
"나머지가 2\n"
1186+
]
1187+
}
1188+
],
1189+
"source": [
1190+
"y = 2\n",
1191+
"x = y % 5\n",
1192+
"\n",
1193+
"if x == 0:\n",
1194+
" print('나머지가 0')\n",
1195+
"elif x == 1:\n",
1196+
" print('나머지가 1')\n",
1197+
"elif x == 2:\n",
1198+
" print('나머지가 2')\n",
1199+
"else:\n",
1200+
" print('기타 등등')"
1201+
]
1202+
},
11761203
{
11771204
"cell_type": "code",
11781205
"execution_count": 6,
@@ -2219,7 +2246,7 @@
22192246
"name": "python",
22202247
"nbconvert_exporter": "python",
22212248
"pygments_lexer": "ipython3",
2222-
"version": "3.12.12"
2249+
"version": "3.13.12"
22232250
}
22242251
},
22252252
"nbformat": 4,

0 commit comments

Comments
 (0)