Skip to content

Commit f838d43

Browse files
committed
Soluciones usando Jupyter Notebook
1 parent 0b0fa51 commit f838d43

22 files changed

Lines changed: 116383 additions & 0 deletions

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ pip-log.txt
2525

2626
#Mr Developer
2727
.mr.developer.cfg
28+
29+
#jupyter notebook checkpoint
30+
.ipynb*
31+
32+
#file with "~"
33+
*~

‎solve_ch/ch_01/ejemAD_ch01.ipynb‎

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"data": {
10+
"text/plain": [
11+
"str"
12+
]
13+
},
14+
"execution_count": 1,
15+
"metadata": {},
16+
"output_type": "execute_result"
17+
}
18+
],
19+
"source": [
20+
"type('2.0')"
21+
]
22+
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": 2,
26+
"metadata": {},
27+
"outputs": [
28+
{
29+
"name": "stdout",
30+
"output_type": "stream",
31+
"text": [
32+
"hello world!\n"
33+
]
34+
}
35+
],
36+
"source": [
37+
"print ('hello world!')"
38+
]
39+
},
40+
{
41+
"cell_type": "code",
42+
"execution_count": 3,
43+
"metadata": {},
44+
"outputs": [
45+
{
46+
"ename": "SyntaxError",
47+
"evalue": "invalid syntax (<ipython-input-3-8204c82e3358>, line 1)",
48+
"output_type": "error",
49+
"traceback": [
50+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-3-8204c82e3358>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m 2++\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
51+
]
52+
}
53+
],
54+
"source": [
55+
"2++"
56+
]
57+
},
58+
{
59+
"cell_type": "code",
60+
"execution_count": 4,
61+
"metadata": {},
62+
"outputs": [
63+
{
64+
"ename": "SyntaxError",
65+
"evalue": "invalid token (<ipython-input-4-0908cbeb2fbd>, line 1)",
66+
"output_type": "error",
67+
"traceback": [
68+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-4-0908cbeb2fbd>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m 02\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid token\n"
69+
]
70+
}
71+
],
72+
"source": [
73+
"02"
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": 5,
79+
"metadata": {},
80+
"outputs": [
81+
{
82+
"ename": "SyntaxError",
83+
"evalue": "invalid syntax (<ipython-input-5-32d3c3db7c81>, line 1)",
84+
"output_type": "error",
85+
"traceback": [
86+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-5-32d3c3db7c81>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m 1 2\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
87+
]
88+
}
89+
],
90+
"source": [
91+
"1 2"
92+
]
93+
},
94+
{
95+
"cell_type": "code",
96+
"execution_count": 6,
97+
"metadata": {},
98+
"outputs": [
99+
{
100+
"data": {
101+
"text/plain": [
102+
"2562"
103+
]
104+
},
105+
"execution_count": 6,
106+
"metadata": {},
107+
"output_type": "execute_result"
108+
}
109+
],
110+
"source": [
111+
"42 * 60 + 42"
112+
]
113+
},
114+
{
115+
"cell_type": "code",
116+
"execution_count": 7,
117+
"metadata": {},
118+
"outputs": [
119+
{
120+
"data": {
121+
"text/plain": [
122+
"6.211180124223602"
123+
]
124+
},
125+
"execution_count": 7,
126+
"metadata": {},
127+
"output_type": "execute_result"
128+
}
129+
],
130+
"source": [
131+
"10 / 1.61"
132+
]
133+
},
134+
{
135+
"cell_type": "code",
136+
"execution_count": 8,
137+
"metadata": {},
138+
"outputs": [],
139+
"source": [
140+
"minutes = 42 + 42 / 60\n",
141+
"\n",
142+
"v = 10 / minutes"
143+
]
144+
},
145+
{
146+
"cell_type": "code",
147+
"execution_count": 9,
148+
"metadata": {},
149+
"outputs": [
150+
{
151+
"data": {
152+
"text/plain": [
153+
"0.7"
154+
]
155+
},
156+
"execution_count": 9,
157+
"metadata": {},
158+
"output_type": "execute_result"
159+
}
160+
],
161+
"source": [
162+
"42 / 60"
163+
]
164+
},
165+
{
166+
"cell_type": "code",
167+
"execution_count": 10,
168+
"metadata": {},
169+
"outputs": [
170+
{
171+
"data": {
172+
"text/plain": [
173+
"0.23419203747072598"
174+
]
175+
},
176+
"execution_count": 10,
177+
"metadata": {},
178+
"output_type": "execute_result"
179+
}
180+
],
181+
"source": [
182+
"v"
183+
]
184+
},
185+
{
186+
"cell_type": "code",
187+
"execution_count": 11,
188+
"metadata": {},
189+
"outputs": [],
190+
"source": [
191+
"v = (10 / 1.61) / (42.7) "
192+
]
193+
},
194+
{
195+
"cell_type": "code",
196+
"execution_count": null,
197+
"metadata": {},
198+
"outputs": [],
199+
"source": [
200+
"v"
201+
]
202+
},
203+
{
204+
"cell_type": "code",
205+
"execution_count": null,
206+
"metadata": {},
207+
"outputs": [],
208+
"source": [
209+
"v = (10 / 1.61) / 2562"
210+
]
211+
},
212+
{
213+
"cell_type": "code",
214+
"execution_count": null,
215+
"metadata": {},
216+
"outputs": [],
217+
"source": [
218+
"v"
219+
]
220+
},
221+
{
222+
"cell_type": "code",
223+
"execution_count": null,
224+
"metadata": {},
225+
"outputs": [],
226+
"source": [
227+
"v = (10 / 1.61) / (42.7 / 60)"
228+
]
229+
},
230+
{
231+
"cell_type": "code",
232+
"execution_count": null,
233+
"metadata": {},
234+
"outputs": [],
235+
"source": [
236+
"v"
237+
]
238+
}
239+
],
240+
"metadata": {
241+
"kernelspec": {
242+
"display_name": "Python 3",
243+
"language": "python",
244+
"name": "python3"
245+
},
246+
"language_info": {
247+
"codemirror_mode": {
248+
"name": "ipython",
249+
"version": 3
250+
},
251+
"file_extension": ".py",
252+
"mimetype": "text/x-python",
253+
"name": "python",
254+
"nbconvert_exporter": "python",
255+
"pygments_lexer": "ipython3",
256+
"version": "3.6.7"
257+
}
258+
},
259+
"nbformat": 4,
260+
"nbformat_minor": 2
261+
}

0 commit comments

Comments
 (0)