Skip to content

Commit 7332bda

Browse files
Atualiza Repo
1 parent 5199cf1 commit 7332bda

14 files changed

+486
-415
lines changed

Cap03/Lab01/game_v2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,5 @@ def game_over():
206206
root.mainloop()
207207

208208

209+
210+

Cap03/Lab02/calculadora_v1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
print("\n******************* Python Calculator *******************")
88

9+

Cap03/Notebooks/DSA-Python-Cap03-01-If-Elif-Else.ipynb

Lines changed: 51 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@
99
"## Download: http://github.com/dsacademybr"
1010
]
1111
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 1,
15+
"metadata": {},
16+
"outputs": [
17+
{
18+
"name": "stdout",
19+
"output_type": "stream",
20+
"text": [
21+
"Versão da Linguagem Python Usada Neste Jupyter Notebook: 3.7.6\n"
22+
]
23+
}
24+
],
25+
"source": [
26+
"# Versão da Linguagem Python\n",
27+
"from platform import python_version\n",
28+
"print('Versão da Linguagem Python Usada Neste Jupyter Notebook:', python_version())"
29+
]
30+
},
1231
{
1332
"cell_type": "markdown",
1433
"metadata": {},
@@ -18,7 +37,7 @@
1837
},
1938
{
2039
"cell_type": "code",
21-
"execution_count": 1,
40+
"execution_count": 2,
2241
"metadata": {},
2342
"outputs": [
2443
{
@@ -37,7 +56,7 @@
3756
},
3857
{
3958
"cell_type": "code",
40-
"execution_count": 2,
59+
"execution_count": 3,
4160
"metadata": {},
4261
"outputs": [
4362
{
@@ -58,7 +77,7 @@
5877
},
5978
{
6079
"cell_type": "code",
61-
"execution_count": 3,
80+
"execution_count": 4,
6281
"metadata": {},
6382
"outputs": [
6483
{
@@ -67,7 +86,7 @@
6786
"True"
6887
]
6988
},
70-
"execution_count": 3,
89+
"execution_count": 4,
7190
"metadata": {},
7291
"output_type": "execute_result"
7392
}
@@ -78,7 +97,7 @@
7897
},
7998
{
8099
"cell_type": "code",
81-
"execution_count": 4,
100+
"execution_count": 5,
82101
"metadata": {},
83102
"outputs": [
84103
{
@@ -87,7 +106,7 @@
87106
"False"
88107
]
89108
},
90-
"execution_count": 4,
109+
"execution_count": 5,
91110
"metadata": {},
92111
"output_type": "execute_result"
93112
}
@@ -98,7 +117,7 @@
98117
},
99118
{
100119
"cell_type": "code",
101-
"execution_count": 5,
120+
"execution_count": 6,
102121
"metadata": {},
103122
"outputs": [
104123
{
@@ -107,7 +126,7 @@
107126
"True"
108127
]
109128
},
110-
"execution_count": 5,
129+
"execution_count": 6,
111130
"metadata": {},
112131
"output_type": "execute_result"
113132
}
@@ -118,7 +137,7 @@
118137
},
119138
{
120139
"cell_type": "code",
121-
"execution_count": 6,
140+
"execution_count": 7,
122141
"metadata": {},
123142
"outputs": [
124143
{
@@ -127,7 +146,7 @@
127146
"True"
128147
]
129148
},
130-
"execution_count": 6,
149+
"execution_count": 7,
131150
"metadata": {},
132151
"output_type": "execute_result"
133152
}
@@ -138,7 +157,7 @@
138157
},
139158
{
140159
"cell_type": "code",
141-
"execution_count": 7,
160+
"execution_count": 8,
142161
"metadata": {},
143162
"outputs": [
144163
{
@@ -156,7 +175,7 @@
156175
},
157176
{
158177
"cell_type": "code",
159-
"execution_count": 8,
178+
"execution_count": 9,
160179
"metadata": {},
161180
"outputs": [
162181
{
@@ -174,15 +193,15 @@
174193
},
175194
{
176195
"cell_type": "code",
177-
"execution_count": 9,
196+
"execution_count": 10,
178197
"metadata": {},
179198
"outputs": [
180199
{
181200
"ename": "SyntaxError",
182-
"evalue": "invalid syntax (<ipython-input-9-da7e3854cb73>, line 2)",
201+
"evalue": "invalid syntax (<ipython-input-10-20e8653bc258>, line 2)",
183202
"output_type": "error",
184203
"traceback": [
185-
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-9-da7e3854cb73>\"\u001b[0;36m, line \u001b[0;32m2\u001b[0m\n\u001b[0;31m if 4 > 3\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
204+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-10-20e8653bc258>\"\u001b[0;36m, line \u001b[0;32m2\u001b[0m\n\u001b[0;31m if 4 > 3\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
186205
]
187206
}
188207
],
@@ -194,15 +213,15 @@
194213
},
195214
{
196215
"cell_type": "code",
197-
"execution_count": 10,
216+
"execution_count": 11,
198217
"metadata": {},
199218
"outputs": [
200219
{
201220
"ename": "IndentationError",
202-
"evalue": "expected an indented block (<ipython-input-10-92620333c5a9>, line 3)",
221+
"evalue": "expected an indented block (<ipython-input-11-f919ae27c9f2>, line 3)",
203222
"output_type": "error",
204223
"traceback": [
205-
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-10-92620333c5a9>\"\u001b[0;36m, line \u001b[0;32m3\u001b[0m\n\u001b[0;31m print(\"Tudo funciona!\")\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mIndentationError\u001b[0m\u001b[0;31m:\u001b[0m expected an indented block\n"
224+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-11-f919ae27c9f2>\"\u001b[0;36m, line \u001b[0;32m3\u001b[0m\n\u001b[0;31m print(\"Tudo funciona!\")\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mIndentationError\u001b[0m\u001b[0;31m:\u001b[0m expected an indented block\n"
206225
]
207226
}
208227
],
@@ -221,7 +240,7 @@
221240
},
222241
{
223242
"cell_type": "code",
224-
"execution_count": 11,
243+
"execution_count": 12,
225244
"metadata": {},
226245
"outputs": [
227246
{
@@ -240,7 +259,7 @@
240259
},
241260
{
242261
"cell_type": "code",
243-
"execution_count": 12,
262+
"execution_count": 13,
244263
"metadata": {},
245264
"outputs": [
246265
{
@@ -262,7 +281,7 @@
262281
},
263282
{
264283
"cell_type": "code",
265-
"execution_count": 13,
284+
"execution_count": 14,
266285
"metadata": {},
267286
"outputs": [
268287
{
@@ -282,7 +301,7 @@
282301
},
283302
{
284303
"cell_type": "code",
285-
"execution_count": 14,
304+
"execution_count": 15,
286305
"metadata": {},
287306
"outputs": [
288307
{
@@ -309,7 +328,7 @@
309328
},
310329
{
311330
"cell_type": "code",
312-
"execution_count": 15,
331+
"execution_count": 16,
313332
"metadata": {},
314333
"outputs": [
315334
{
@@ -330,7 +349,7 @@
330349
},
331350
{
332351
"cell_type": "code",
333-
"execution_count": 16,
352+
"execution_count": 17,
334353
"metadata": {},
335354
"outputs": [
336355
{
@@ -359,7 +378,7 @@
359378
},
360379
{
361380
"cell_type": "code",
362-
"execution_count": 17,
381+
"execution_count": 18,
363382
"metadata": {},
364383
"outputs": [
365384
{
@@ -379,7 +398,7 @@
379398
},
380399
{
381400
"cell_type": "code",
382-
"execution_count": 18,
401+
"execution_count": 19,
383402
"metadata": {},
384403
"outputs": [
385404
{
@@ -398,15 +417,15 @@
398417
},
399418
{
400419
"cell_type": "code",
401-
"execution_count": 19,
420+
"execution_count": 20,
402421
"metadata": {},
403422
"outputs": [
404423
{
405424
"name": "stdout",
406425
"output_type": "stream",
407426
"text": [
408427
"Digite o nome da disciplina: Geografia\n",
409-
"Digite a nota final (entre 0 e 100): 76\n",
428+
"Digite a nota final (entre 0 e 100): 80\n",
410429
"Você foi aprovado!\n"
411430
]
412431
}
@@ -425,17 +444,17 @@
425444
},
426445
{
427446
"cell_type": "code",
428-
"execution_count": 20,
447+
"execution_count": 21,
429448
"metadata": {},
430449
"outputs": [
431450
{
432451
"name": "stdout",
433452
"output_type": "stream",
434453
"text": [
435454
"Digite o nome da disciplina: Geografia\n",
436-
"Digite a nota final (entre 0 e 100): 87\n",
455+
"Digite a nota final (entre 0 e 100): 40\n",
437456
"Digite o semestre (1 a 4): 2\n",
438-
"Você foi aprovado em Geografia com média final '87'!\n"
457+
"Lamento, acho que você precisa estudar mais!\n"
439458
]
440459
}
441460
],
@@ -490,7 +509,7 @@
490509
"name": "python",
491510
"nbconvert_exporter": "python",
492511
"pygments_lexer": "ipython3",
493-
"version": "3.6.5"
512+
"version": "3.7.6"
494513
}
495514
},
496515
"nbformat": 4,

0 commit comments

Comments
 (0)