Skip to content

Commit d2fdb0d

Browse files
committed
Loop
1 parent df82206 commit d2fdb0d

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

Loops.ipynb

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,45 @@
132132
},
133133
{
134134
"cell_type": "code",
135-
"execution_count": null,
135+
"execution_count": 8,
136136
"metadata": {},
137-
"outputs": [],
138-
"source": []
137+
"outputs": [
138+
{
139+
"name": "stdout",
140+
"output_type": "stream",
141+
"text": [
142+
"0\n",
143+
"1\n",
144+
"2\n",
145+
"3\n",
146+
"4\n"
147+
]
148+
}
149+
],
150+
"source": [
151+
"for i in range(5):\n",
152+
" print(i)"
153+
]
154+
},
155+
{
156+
"cell_type": "code",
157+
"execution_count": 9,
158+
"metadata": {},
159+
"outputs": [
160+
{
161+
"data": {
162+
"text/plain": [
163+
"[0, 1, 2, 3, 4]"
164+
]
165+
},
166+
"execution_count": 9,
167+
"metadata": {},
168+
"output_type": "execute_result"
169+
}
170+
],
171+
"source": [
172+
"list(range(5))"
173+
]
139174
}
140175
],
141176
"metadata": {

0 commit comments

Comments
 (0)