1
+ {
2
+ "nbformat" : 4 ,
3
+ "nbformat_minor" : 0 ,
4
+ "metadata" : {
5
+ "colab" : {
6
+ "name" : " testes_em_aula.ipynb" ,
7
+ "provenance" : [],
8
+ "authorship_tag" : " ABX9TyPCTD1Kwv5afnjdddje9Po0" ,
9
+ "include_colab_link" : true
10
+ },
11
+ "kernelspec" : {
12
+ "name" : " python3" ,
13
+ "display_name" : " Python 3"
14
+ },
15
+ "language_info" : {
16
+ "name" : " python"
17
+ }
18
+ },
19
+ "cells" : [
20
+ {
21
+ "cell_type" : " markdown" ,
22
+ "metadata" : {
23
+ "id" : " view-in-github" ,
24
+ "colab_type" : " text"
25
+ },
26
+ "source" : [
27
+ " <a href=\" https://colab.research.google.com/github/iurisaints/pythonClass/blob/main/testes_em_aula.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a>"
28
+ ]
29
+ },
30
+ {
31
+ "cell_type" : " markdown" ,
32
+ "source" : [
33
+ " teste para funcionalidade de soma de strings"
34
+ ],
35
+ "metadata" : {
36
+ "id" : " NZNV1jR-0oMH"
37
+ }
38
+ },
39
+ {
40
+ "cell_type" : " code" ,
41
+ "source" : [
42
+ " a = \" bom\" "
43
+ ],
44
+ "metadata" : {
45
+ "id" : " 0HW2u72eRPNu"
46
+ },
47
+ "execution_count" : null ,
48
+ "outputs" : []
49
+ },
50
+ {
51
+ "cell_type" : " code" ,
52
+ "execution_count" : null ,
53
+ "metadata" : {
54
+ "colab" : {
55
+ "base_uri" : " https://localhost:8080/"
56
+ },
57
+ "id" : " o0LixADF0llG" ,
58
+ "outputId" : " 06f9b0cb-9432-4a67-d6c5-65278cd33941"
59
+ },
60
+ "outputs" : [
61
+ {
62
+ "output_type" : " stream" ,
63
+ "name" : " stdout" ,
64
+ "text" : [
65
+ " Digite um valor: 45\n " ,
66
+ " Digite outro valor: 50\n " ,
67
+ " 95\n "
68
+ ]
69
+ }
70
+ ],
71
+ "source" : [
72
+ " a = int(input(\" Digite um valor: \" ))\n " ,
73
+ " b = int(input(\" Digite outro valor: \" ))\n " ,
74
+ " print(a+b)"
75
+ ]
76
+ },
77
+ {
78
+ "cell_type" : " code" ,
79
+ "source" : [
80
+ " nome\t = (\" iuri\" )\n " ,
81
+ " idade\t = int(23)\n " ,
82
+ " peso\t = int(110)\n " ,
83
+ " altura\t = int(171)\n " ,
84
+ " print(nome, idade, peso, altura)\n "
85
+ ],
86
+ "metadata" : {
87
+ "id" : " CZpmHoelsd_z" ,
88
+ "outputId" : " ccaaef85-d4c1-4913-a59a-cd906625e960" ,
89
+ "colab" : {
90
+ "base_uri" : " https://localhost:8080/"
91
+ }
92
+ },
93
+ "execution_count" : null ,
94
+ "outputs" : [
95
+ {
96
+ "output_type" : " stream" ,
97
+ "name" : " stdout" ,
98
+ "text" : [
99
+ " iuri 23 110 171\n "
100
+ ]
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "cell_type" : " code" ,
106
+ "source" : [
107
+ " A = float(input(\" Digite a sua primeira nota: \" ))\n " ,
108
+ " B = float(input(\" Digite a sua segunda nota: \" ))\n " ,
109
+ " C = float(input(\" Digite a sua terceira nota: \" ))\n " ,
110
+ " \n " ,
111
+ " MEDIA = float((A+B+C)/3)\n " ,
112
+ " \n " ,
113
+ " if(MEDIA < 7):\n " ,
114
+ " print(\" Aluno Reprovado, média: %0.1f\" %MEDIA)\n " ,
115
+ " else :\n " ,
116
+ " print(\" Aluno Aprovado, média = %0.1f\" %MEDIA)"
117
+ ],
118
+ "metadata" : {
119
+ "colab" : {
120
+ "base_uri" : " https://localhost:8080/"
121
+ },
122
+ "id" : " uL9qbQ6VZxJG" ,
123
+ "outputId" : " e6085810-48f5-46d7-a60c-5ab40ea17747"
124
+ },
125
+ "execution_count" : null ,
126
+ "outputs" : [
127
+ {
128
+ "output_type" : " stream" ,
129
+ "name" : " stdout" ,
130
+ "text" : [
131
+ " Digite a sua primeira nota: 10\n " ,
132
+ " Digite a sua segunda nota: 5\n " ,
133
+ " Digite a sua terceira nota: 7\n " ,
134
+ " Aluno Aprovado, média = 7.3\n "
135
+ ]
136
+ }
137
+ ]
138
+ },
139
+ {
140
+ "cell_type" : " code" ,
141
+ "source" : [
142
+ " A = int(input())\n " ,
143
+ " B = int(input())\n " ,
144
+ " C = int(input())\n " ,
145
+ " D = int(input())\n " ,
146
+ " E = (A * B - C * D)\n " ,
147
+ " print(\" DIFERENCA = \" , E)"
148
+ ],
149
+ "metadata" : {
150
+ "colab" : {
151
+ "base_uri" : " https://localhost:8080/"
152
+ },
153
+ "id" : " Gl5H7bwucFYo" ,
154
+ "outputId" : " 6c9b0d24-d8d5-4425-adb9-c796b2a5dbcc"
155
+ },
156
+ "execution_count" : null ,
157
+ "outputs" : [
158
+ {
159
+ "output_type" : " stream" ,
160
+ "name" : " stdout" ,
161
+ "text" : [
162
+ " 5\n " ,
163
+ " 6\n " ,
164
+ " 7\n " ,
165
+ " 8\n " ,
166
+ " DIFERENCA = -26\n "
167
+ ]
168
+ }
169
+ ]
170
+ }
171
+ ]
172
+ }
0 commit comments