Skip to content

Commit b816e8f

Browse files
jueves 7 febrero
1 parent b81d113 commit b816e8f

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

Diff for: M04_flujosdecontrol/Prep_Course_Homework_04.ipynb

+21-4
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,25 @@
127127
},
128128
{
129129
"cell_type": "code",
130-
"execution_count": null,
130+
"execution_count": 6,
131131
"metadata": {},
132-
"outputs": [],
133-
"source": []
132+
"outputs": [
133+
{
134+
"name": "stdout",
135+
"output_type": "stream",
136+
"text": [
137+
"0 elevado a la potencia 3 es = 0\n",
138+
"1 elevado a la potencia 3 es = 1\n",
139+
"2 elevado a la potencia 3 es = 8\n",
140+
"3 elevado a la potencia 3 es = 27\n",
141+
"4 elevado a la potencia 3 es = 64\n"
142+
]
143+
}
144+
],
145+
"source": [
146+
"for d in range(0,5):\n",
147+
" print(str(d), \"elevado a la potencia 3 es =\", str(d**3))"
148+
]
134149
},
135150
{
136151
"attachments": {},
@@ -145,7 +160,9 @@
145160
"execution_count": null,
146161
"metadata": {},
147162
"outputs": [],
148-
"source": []
163+
"source": [
164+
"d = 5\n"
165+
]
149166
},
150167
{
151168
"attachments": {},

0 commit comments

Comments
 (0)