-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathaula_python_24_11_2021.py
More file actions
47 lines (46 loc) · 1.31 KB
/
aula_python_24_11_2021.py
File metadata and controls
47 lines (46 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
nota_m1=5.6
print(nota_m1, type(nota_m1))
nota_m1=10.1
nota_m2=10.2
conceito='A'
cancelado=True
validadeVencida=False
quantidade_material=99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999123456789
print(nota_m1,type(nota_m1))
print(conceito, type(conceito))
print(nota_m2, type(nota_m2))
print(quantidade_material, type(quantidade_material))
print(validadeVencida,type(validadeVencida))
soma=nota_m1+nota_m2
print("soma", nota_m1+nota_m2,type(soma))
media=soma/2
print("media", media, type(media))
print("Maior",nota_m1>nota_m2)
print("Menor ou igual",nota_m1<=nota_m2)
print("igual",nota_m1==nota_m2)
print("diferente",nota_m1!=nota_m2)
print("igual estrito", nota_m1==nota_m2 and type(nota_m1)==type(nota_m2) )
print("igual tipo ou valor", nota_m1==nota_m2 or type(nota_m1)==type(nota_m2) )
print (not(True))
'''
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
name="Python"
majorVersion=3
version=3.7
authorized=False
print(type(name))
print(type(majorVersion))
print(type(version))
print(type(authorized))
print(type(majorVersion<version))
print (False & False)
print (False | True)
print (False and False)
print (False or True)
'''