=18:
+ maiores18+=1
+ if sexo in 'Mm':
+ homens+=1
+ else:
+ if idade < 20:
+ mulheres_20+=1
+ r=str(input('\nDeseja Cadastrar mais alguma pessoa?[S/N]'))
+ if r in 'Nn':
+ break
+
+
+print(f'\nQuantidade de Homens {homens}\nMaiores de 18 anos {maiores18}\nMulheres com menos de 20 anos {mulheres_20}')
diff --git a/exerc070.py b/exerc070.py
new file mode 100644
index 0000000..ee2b61f
--- /dev/null
+++ b/exerc070.py
@@ -0,0 +1,23 @@
+print('-==-'*50)
+print('EXÉRCICIO 70 - ANALISANDO DADOS')
+print('-==-'*50)
+produtos=[]
+precos=[]
+mais1000=0
+while True:
+ produto = str(input('Digite o nome do produto: ')).strip().upper()
+ preco = float(input('Digite o Preço do Produto: R$'))
+ if preco > 999:
+ mais1000+=1
+ produtos.append(produto)
+ precos.append(preco)
+
+ r=str(input('\nDeseja Cadastrar mais algum produto?[S/N]'))
+ if r in 'Nn':
+ break
+
+print(f'TOTAL GASTO: R${sum(precos):.2f}')
+print(f'PRODUTO MAIS BARATO: {produtos[precos.index(min(precos))]} - R${min(precos):.2f}')
+print(f'PRODUTOS MAIS CAROS DO QUE R$1.000,00 {mais1000}')
+
+
diff --git a/exerc071.py b/exerc071.py
new file mode 100644
index 0000000..f28d2b5
--- /dev/null
+++ b/exerc071.py
@@ -0,0 +1,27 @@
+print('-==-'*50)
+print('EXÉRCICIO 71 - BANCO GREGMASTER')
+print('-==-'*50)
+cedulas=[100,50,20,10,5,2,1] #Pode causar um problema, por exemplo, um random em que interrompe o fornecimento de dinheiro ou o usuario escolhe as notas que quer receber. Basta operacionalizar a lista notas.
+valor=int(input('Que valor quer sacar? R$'))
+sacar = valor
+notas_entregue=[]
+c=-1
+while True:
+ if sacar >0:
+ c+=1
+ while True:
+ if sacar / cedulas[c] < 1:
+ break
+ else:
+ sacar = sacar - cedulas[c]
+ #print(f'{c} - VALOR LIBERADO: R$ {cedulas[c]} - DEVEDOR: {sacar}')
+ notas_entregue.append(c)
+ if sacar ==0:
+ break
+print('\JÁ LIBEREI SEU DINHEIRO. AGORA PAGA JUROS PRA MIM')
+print('CONFIRA SUA NOTAS AÍ. TE PAGUEI ASSIM: ')
+
+for x in range(0,len(cedulas)):
+ if notas_entregue.count(x)> 0:
+ print(f'{notas_entregue.count(x)} nota(s) de R${(cedulas[x])} reais')
+print(f'\nTOTALIZANDO = R${valor} reais ')
diff --git a/exerc072.py b/exerc072.py
new file mode 100644
index 0000000..f282a22
--- /dev/null
+++ b/exerc072.py
@@ -0,0 +1,26 @@
+print('-==-'*50)
+print('AULA 16# TUPLAS - EXERCÍCIO 72')
+print('-==-'*50)
+print('AS TUPLAS SÃO IMUTÁVEIS!!!')
+lanche=('A',1,5.5,'B')
+lanche is tuple
+for c in lanche:
+ print(c)
+
+for cont in range(0, len(lanche)):
+ print(f'{lanche[cont]} -- {cont}')
+
+for pos, c in enumerate(lanche):
+ print(c,pos)
+print('-==-'*50)
+print('EXERCÍCIO 72 - TUPLA PREENCHIDA')
+print('-==-'*50)
+
+numeros=('zero','um', 'dois', 'tres', 'quatro','cinco','seis','sete','oito','nove','dez','onze','doze','treze','quatorze','quinze','dezesseis','dezesete','dezoito','dezenove','vinte')
+
+while True:
+ n=int(input('Digite um número: '))
+ if n<0 or n > 20:
+ print('Número Inválido. Digite entre 0 e 20')
+ else:
+ print(f'{n} => {numeros[n].upper()}')
diff --git a/exerc073.py b/exerc073.py
new file mode 100644
index 0000000..17fc7a8
--- /dev/null
+++ b/exerc073.py
@@ -0,0 +1,27 @@
+print('-==-'*50)
+print('EXERCÍCIO 73 - CORINTHIANS CAMPEÃO DO BRASILEIRÃO DE 2017')
+print('-==-'*50)
+
+classificacao=('','Corinthians','Palmeiras','Santos','Grêmio','Cruzeiro','Flamengo','Vasco','Chapecoense','Atlético-MG','Botafogo','Atlético-PR','Bahia','São Paulo','Fluminense','Sport','Vitória','Coritiba','Avaí','Ponte Preta','Atlético-GO')
+
+print('CLASSIFICAÇÃO CAMPEONATO BRASOLEIRO - 2017')
+for pos,clube in enumerate(classificacao):
+ if pos>0:
+ print(f'{pos}º - {clube}')
+
+
+print('\nCLASSIFICADOS LIBERTADORES 2018')
+print(classificacao[0:6])
+for libertadores in range(1, 6):
+ print(f'{libertadores}º - {classificacao[libertadores]}')
+
+print('\nREBAIXADOS PARA O CAMPEONATO DA SÉRIE B 2018')
+for pos,clube in enumerate(classificacao):
+ if pos>16:
+ print(f'{pos}º - {clube}')
+
+print('\nCLUBES QUE PARTICIPARAM DO CAMPEONATO BRASILEIRO 2017 - AZ')
+for cont in range(1, len(classificacao)):
+ print(f'{sorted(classificacao)[cont]}')
+
+print(f'\nA Chapecoense ficou em {classificacao.index("Chapecoense")}º no Campeonato Brasileiro de 2017')
\ No newline at end of file
diff --git a/exerc074.py b/exerc074.py
new file mode 100644
index 0000000..8dd33cb
--- /dev/null
+++ b/exerc074.py
@@ -0,0 +1,13 @@
+import random
+print('-==-'*50)
+print('EXERCÍCIO 74 - NÚMEROS ALEATÓRIOS NA TUPLA')
+print('-==-'*50)
+numeros=(random.randint(1,10),random.randint(1,10),random.randint(1,10),random.randint(1,10),random.randint(1,10))
+#numeros=(random.randint(1,10),*5))
+
+
+for n in numeros:
+ print(f'{n} ',end='')
+#print(numeros)
+print(f'\nMAIOR: {max(numeros)}')
+print(f'MENOR: {min(numeros)}')
\ No newline at end of file
diff --git a/exerc075.py b/exerc075.py
new file mode 100644
index 0000000..cb67c1d
--- /dev/null
+++ b/exerc075.py
@@ -0,0 +1,24 @@
+import random
+print('-==-'*50)
+print('EXERCÍCIO 75 - NÚMEROS ALEATÓRIOS NA TUPLA')
+print('-==-'*50)
+
+numeros=(random.randint(3,9),random.randint(3,9),random.randint(3,9),random.randint(3,9),random.randint(3,9))
+
+print(numeros)
+if 9 in numeros:
+ print(f'O número 9 apareceu: {numeros.count(9)} vezes')
+else:
+ print(f'O número 9 NÃO APARECEU')
+#print(f'O número 3 apareceu na posição: {numeros.index(3)}ª')
+if 3 in numeros:
+ print(f'O número 3 apareceu na posição: {numeros.index(3)+1}ª')
+else:
+ print('O número 3 não foi sorteado na lista')
+
+print('Os números Pares Sorteados foram: ',end='')
+for pos,n in enumerate(numeros):
+ if n%2==0:
+ print(f'{n} ',end='')
+
+print('\n')
diff --git a/exerc076.py b/exerc076.py
new file mode 100644
index 0000000..d072c8c
--- /dev/null
+++ b/exerc076.py
@@ -0,0 +1,29 @@
+import random
+print('-==-'*50)
+print('EXERCÍCIO 76 - LISTA DE COMPRAS')
+print('-==-'*50)
+
+print("#"*40)
+print(f'{"MERCADO GREGMASTER":^40}')
+print("#"*40)
+compras=('Pão',1,'Leite',3.50,'Maça',5.00,'Arroz',11.50,'Bife',19.85)
+print(f'{"Produtos":<28}{"Preço (R$)"}')
+print('-'*40)
+for c in range(0,len(compras),2):
+ print(f'{compras[c]:.<30}R$ {compras[c+1]:0.2f}')
+print('-'*40)
+
+
+print('\n\n')
+nome='Gregorio'
+print("Prazer em te conhecer {}!".format(nome))
+print("#"*10)
+print("[ESCREVE COM 20 ESPACO]Prazer em te conhecer {:20}!".format(nome))
+print("#"*10)
+print("[ALINHADO A DIREITA 20 ESPACO]Prazer em te conhecer {:>20}!".format(nome))
+print("#"*10)
+print("[ALINHADO A ESQUERDA 20 ESPACO]Prazer em te conhecer {:<20}!".format(nome))
+print("#"*10)
+print("[CENTRALIZADO]Prazer em te conhecer {:^20}!".format(nome))
+print("#"*10)
+print("[CENTRALIZADO COM UM SIMBOLO]Prazer em te conhecer {:=^20}!".format(nome))
\ No newline at end of file
diff --git a/exerc077.py b/exerc077.py
new file mode 100644
index 0000000..56d3869
--- /dev/null
+++ b/exerc077.py
@@ -0,0 +1,14 @@
+import random
+print('-==-'*50)
+print('EXERCÍCIO 77 - TUPLA VÁRIAS PALAVRAS E PROCURAR A VOGAL ')
+print('-==-'*50)
+
+palavras = ('Gregorio','Almeida','Queiroz','Amanda','Altava','Palhares','Se','Amam')
+vogais ='aeiou'
+
+for p in range (0,len(palavras)):
+ palavra = palavras[p].lower()
+ print(f'\nNa Palavra {palavra.upper()} temos ', end='')
+ for l in range(0,len(palavra)):
+ if (palavra[l]) in vogais:
+ print(f'{palavra[l]}, ', end='')
diff --git a/exerc078.py b/exerc078.py
new file mode 100644
index 0000000..3f9f013
--- /dev/null
+++ b/exerc078.py
@@ -0,0 +1,66 @@
+print('-==-'*50)
+print('AULA 17 - PARTE 1 LISTAS ')
+print('-==-'*50)
+
+lanches = ['hamburguer','coca-cola','pizza','sorvete']
+print(f'{lanches}')
+#adicionar um elemento da lista
+lanches.append('pudim')
+print(f'{lanches}')
+lanches.insert(0,'Pão')
+print(f'{lanches}')
+#remover um item da lista
+del lanches[0]
+print(f'{lanches}')
+lanches.pop() #lanches.pop(-1)
+print(f'{lanches}')
+lanches.remove('pizza')
+print(f'{lanches}')
+
+if 'pizza' in lanches:
+ lanches.remove('pizza')
+
+valores = list(range(4,11))
+print(valores)
+
+valores2 = list(range(1,21,2))
+print(valores2)
+#ordenar é o método sort() parametro reverse=True - ordem inversa
+valores2.sort(reverse=True)
+print(valores2)
+print(len(valores2))
+
+for c,v in enumerate(valores2):
+ print(f'Na posição {c} encontrei o valor {v}')
+valores3 = list()
+
+for cont in range(0,5):
+ valores3.append(int(input('Digite um valor: ')))
+
+print(valores3)
+#Propriedades
+a =[2,3,4,7]
+b=a
+print(a)
+print(b)
+#-> O phyton cria uma LIGAÇÃO/VINCULO FORTE entre as listas. Se eu alterar B, vai mudar A
+b[2] =8
+print(a)
+print(b)
+#Para criar uma cópia precisa usar o o parametro :
+c = a[:] #Apenas Copia, não tem vínculo
+print(c)
+c[2] = 20
+print(c)
+
+
+
+print('-==-'*50)
+print(' EXERCÍCIO 78 - LISTAS LER 5 NÚMEROS E MOSTRAR O MAIOR E MENOR')
+print('-==-'*50)
+num = list()
+for x in range(0,5):
+ num.append(int(input('Digite um valor: ')))
+print(num)
+print(f'O maior valor é {max(num)}. Ele está na posição: {num.index(max(num))}')
+print(f'O menor valor é {min(num)}. Ele está na posição: {num.index(min(num))}')
\ No newline at end of file
diff --git a/exerc079.py b/exerc079.py
new file mode 100644
index 0000000..137c318
--- /dev/null
+++ b/exerc079.py
@@ -0,0 +1,26 @@
+print('-==-'*50)
+print(' EXERCÍCIO 79 - LISTAS LER NÚMEROS ALEATORIAMENTE E NÃO DEIXAR ENTRAR NÚMEROS DUPLICADOS. NO FINAL É COLOCADO EM ORDEM')
+print('-==-'*50)
+num = list()
+print('Digite números aleatproriamente. o -1 para de receber')
+while True:
+ n = int(input('Digite um valor: '))
+ if n<0:
+ break
+ else:
+ if n not in num:
+ num.append(n)
+if len(num)>0:
+ print('Olha os números dígitados')
+ print(num)
+ print('Os números ordenados')
+ num.sort()
+ print(num)
+else:
+ print('NÃO FOI DIGITADO NENHUM NÚMERO')
+
+
+
+
+
+
diff --git a/exerc080.py b/exerc080.py
new file mode 100644
index 0000000..e8cd82b
--- /dev/null
+++ b/exerc080.py
@@ -0,0 +1,18 @@
+print('-==-'*50)
+print(' EXERCÍCIO 80 - LISTAS LER 5 NÚMEROS E MOSTRAR O MAIOR E MENOR')
+print('-==-'*50)
+num = list()
+print('Digite números aleatoriamente e organizar os numeros sem o SORT')
+
+for i in range(0,5):
+ n=int(input(f'Digite o {i+1}º número: '))
+ if i==0 or n > num[-1]:
+ num.append(n)
+ else:
+ p=0
+ while p < len(num):
+ if n <= num[p]:
+ num.insert(p, n)
+ break
+ p += 1
+print(num)
diff --git a/exerc081.py b/exerc081.py
new file mode 100644
index 0000000..eb59fd1
--- /dev/null
+++ b/exerc081.py
@@ -0,0 +1,21 @@
+print('-==-'*50)
+print(' EXERCÍCIO 81 - LISTAS LER VARIOS NÚMEROS NÚMEROS E QUANTOS NUMEROS, ORDEM E SE O CINCO TA LISTA')
+print('-==-'*50)
+numeros = []
+while True:
+ n = int(input(f'Digite um número: '))
+ if n < 0:
+ break
+ else:
+ numeros.append(n)
+print(f'Quantidade de números digitados: {len(numeros)}')
+print(f'Ordem Original: {numeros}')
+num = numeros[:]
+num.sort()
+print(f'Ordem decrescente: {num}')
+x = int(input(f'Digite um número para procurar na lista: '))
+if x in num:
+ print(f'O número {x} está na lista')
+else:
+ print(f'O número {x} não está na lista')
+
diff --git a/exerc082.py b/exerc082.py
new file mode 100644
index 0000000..da03e5b
--- /dev/null
+++ b/exerc082.py
@@ -0,0 +1,27 @@
+print('-==-'*50)
+print(' EXERCÍCIO 82 - LISTAS LER VARIOS NÚMEROS NÚMEROS E SEPARAAR EM PARE E IMPAR')
+print('-==-'*50)
+numeros = []
+par = []
+impar = []
+while True:
+ n = int(input(f'Digite um número: '))
+ if n < 0:
+ break
+ else:
+ numeros.append(n)
+ if n%2==0:
+ par.append(n)
+ else:
+ impar.append(n)
+
+print(f'Quantidade de números digitados: {len(numeros)}')
+print(f'Ordem Original: {numeros}')
+if len(par)>0:
+ print(f'PARES: {par}')
+else:
+ print('NÃO FOI INFORMADO NÚMERO PAR')
+if len(impar)>0:
+ print(f'IMPARES: {impar}')
+else:
+ print('NÃO FOI INFORMADO NÚMERO ÍMPAR')
diff --git a/exerc083.py b/exerc083.py
new file mode 100644
index 0000000..6f66941
--- /dev/null
+++ b/exerc083.py
@@ -0,0 +1,39 @@
+print('-==-'*50)
+print(' EXERCÍCIO 83 - VERIFICAR SE A EXPRESSÃO É VÁLIDA')
+print('-==-'*50)
+
+expressao = str(input('Digite uma expressão: '))
+#Dessa maneira aceita uns bugs.
+abriu=expressao.count('(')
+fechou=expressao.count(')')
+
+
+print(abriu)
+print(fechou)
+
+if(abriu==fechou):
+ print(expressao.index('('), expressao.index(')'))
+ if expressao.index('(') > expressao.index(')'):
+ print('EXPRESSÃO NAO É VÁLIDA')
+ else:
+ print('EXPRESSÃO É VÁLIDA')
+else:
+ print('EXPRESSÃO NAO É VÁLIDA')
+
+#GUANABARA
+pilha = []
+
+for s in expressao:
+ if s =='(':
+ pilha.append('(')
+ elif s==')':
+ if len(pilha)>0:
+ pilha.pop()
+ else:
+ pilha.append(')')
+ break
+if len(pilha) == 0:
+ print('[GUANABARA] EXPRESSÃO É VÁLIDA')
+else:
+ print('[GUANABARA] EXPRESSÃO NÃO É VÁLIDA')
+
diff --git a/exerc084.py b/exerc084.py
new file mode 100644
index 0000000..d56b678
--- /dev/null
+++ b/exerc084.py
@@ -0,0 +1,21 @@
+print('-==-'*50)
+print(' EXERCÍCIO 84 - ANÁLISE DE DADOS')
+print('-==-'*50)
+pessoas = []
+while True:
+ n = str(input('Nome: ')).upper().strip()
+ p = float(input('Peso (kg): '))
+ pessoas.append([n,p])
+ r = str(input('Deseja Continuar? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
+print(pessoas)
+print(f'Foram cadastradas {len(pessoas)} pessoas')
+print(f'Ordem das pessoas LEVEs ')
+pessoas.sort(key=lambda x:x[1])
+for pes in pessoas:
+ print(pes)
+print(f'Ordem das pessoas PESADAS')
+pessoas.sort(key=lambda x:x[1], reverse=True)
+for pes in pessoas:
+ print(pes)
\ No newline at end of file
diff --git a/exerc085.py b/exerc085.py
new file mode 100644
index 0000000..c418dfc
--- /dev/null
+++ b/exerc085.py
@@ -0,0 +1,16 @@
+print('-==-'*50)
+print(' EXERCÍCIO 85 - RECEBENDO OS VALORES')
+print('-==-'*50)
+num = [[],[],[]]
+n = -1
+for i in range(0,7):
+ n=int(input(f'Digite o {i+1}º valor: '))
+ num[0].append(n)
+ if n % 2 == 0:
+ num[2].append(n) #PAR
+ else:
+ num[1].append(n) #IMPAR
+
+print(num)
+print(f'Os PARES são: {sorted(num[2])}')
+print(f'Os ÍMPARES são: {sorted(num[1])}')
diff --git a/exerc086.py b/exerc086.py
new file mode 100644
index 0000000..9ef5c45
--- /dev/null
+++ b/exerc086.py
@@ -0,0 +1,27 @@
+print('-==-'*50)
+print(' EXERCÍCIO 86 - MATRIZ 3X3 - DIMENSIONAL')
+print('-==-'*50)
+matriz = []
+x=y=3
+for i in range(x):
+ matriz.append([0]*y)
+ for j in range(y):
+ matriz[i][j] = int(input(f'Digie o valor [{i+1}]x[{j+1}]: '))
+print(matriz)
+print('\n')
+for lin in range(0,x):
+ for col in range(0,y):
+ print(f'[{matriz[lin][col]:^5}]',end='')
+ print()
+
+print('\n')
+matriz = [[],[],[]]
+for l in range(0,3):
+ for c in range(0,3):
+ matriz[l].append(int(input(f"Digite um valor para [{l},{c}]: ")))
+print('-='*30)
+
+for l in range(0,3):
+ for c in range(0,3):
+ print(f'[{matriz[l][c]:^5}]', end='')
+ print()
\ No newline at end of file
diff --git a/exerc087.py b/exerc087.py
new file mode 100644
index 0000000..6dccb95
--- /dev/null
+++ b/exerc087.py
@@ -0,0 +1,43 @@
+print('-==-'*50)
+print(' EXERCÍCIO 87 - MELHORAR MATRIZ 3X3 - DIMENSIONAL')
+print('-==-'*50)
+soma_3col = pares = 0
+
+matriz = [[],[],[]]
+for l in range(0,3):
+ for c in range(0,3):
+ n = int(input(f"Digie o valor [{l+1}]x[{c+1}]: "))
+ matriz[l].append(n)
+ pares = pares + n if n % 2 == 0 else pares
+ if c==2:
+ soma_3col+= n
+print('-='*30)
+
+for l in range(0,3):
+ for c in range(0,3):
+ print(f'[{matriz[l][c]:^5}]', end='')
+ print()
+print(f"Soma dos valores Pares é: {pares}: ")
+
+
+print(f'[MAP] A SOMA DA MATRIZ É: {sum(map(sum, matriz))}')
+print(f'[FOR] A SOMA DA MATRIZ É: {sum(sum(x) for x in matriz)}')
+print(f'A SOMA DA 3 COLUNA É: {soma_3col}')
+print(f'A SOMA DA DOS PARES É: {pares}')
+print(f'DA ERRADO - O MAIOR VALOR É: {max(max(matriz[:][:]))}')
+print(max(matriz[:][:]))
+maior = 0
+
+for z in range(0,3):
+ if z==0:
+ maior=matriz[1][c]
+ elif matriz[1][c]> maior:
+ mai = matriz[1][c]
+
+print(f'O MAIOR VALOR DA SEGUNDA LINHA É? {maior}')
+
+
+#NAO FUNCIONOUprint(f'[FOR] A SOMA DOS PARES É: {sum(sum(x if x % 2 == 0 else 0) for x in matriz)}')
+
+
+
diff --git a/exerc088.py b/exerc088.py
new file mode 100644
index 0000000..8e0d942
--- /dev/null
+++ b/exerc088.py
@@ -0,0 +1,37 @@
+from random import randint
+from time import sleep
+print('-==-'*50)
+print(' EXERCÍCIO 88 - JOGANDO MEGASENA')
+print('-==-'*50)
+jogos = []
+jogo = []
+n=0
+j=0
+print('JOGO DA MEGA SENA')
+j = int(input('Quantos JOGOS quer que eu sorteie? '))
+preço = 4.5*j
+
+while j>0:
+ while True:
+ n = randint(1, 60)
+ #print(n)
+ if n not in jogo:
+ jogo.append(n)
+
+ if len(jogo) == 6:
+ print(f'{len(jogos)+1}º JOGO - Olha o jogo feito: {jogo}')
+ sleep(0.5)
+ jogos.append(jogo)
+ #jogo.clear()
+ jogo = []
+ break
+ j-=1
+ if j<1:
+ break
+print()
+print(f'VOCÊ PRECISA PAGAR R${preço:.02f}.\nOlha os Jogos realizados: \n{jogos}')
+print()
+print('FOR')
+for jg in jogos.sort():
+ print(jg)
+
diff --git a/exerc089.py b/exerc089.py
new file mode 100644
index 0000000..b006a0f
--- /dev/null
+++ b/exerc089.py
@@ -0,0 +1,31 @@
+print('-==-'*50)
+print(' EXERCÍCIO 89 - MEDIA ESCOLAR ALUNOS')
+print('-==-'*50)
+alunos=[]
+while True:
+ nome = str(input('NOME: ')).upper().strip()
+
+ nota1 = float(input('NOTA 1 : '))
+ nota2 = float(input('NOTA 2 : '))
+ alunos.append([nome,nota1,nota2])
+ r = str(input('DESEJA CONTINUAR? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
+print()
+print('MÉDIA APROVAÇÃO - ESCOLA GREGMASTER')
+#print(alunos)
+print('-'*50)
+print(f'{"#":<4} {"NOME":1<0} {"MÉDIA":>8}')
+print('-'*50)
+for pos,c in enumerate(alunos):
+ #print(c)
+ print(f'{pos+1:<4} {c[0]:<10} {sum(c[1:])/2:.02f}')
+print()
+while True:
+ idAluno = int(input('Informe o Id do Aluno para Pesquisar : '))
+
+ if idAluno>len(alunos):
+ print('FINALIZANDO')
+ else:
+ idAluno-=1
+ print(f" As notas do {alunos[idAluno][0]} - foram NOTA 1: {alunos[idAluno][1]} e NOTA 2: {alunos[idAluno][2]} ")
\ No newline at end of file
diff --git a/exerc090.py b/exerc090.py
new file mode 100644
index 0000000..414a8f0
--- /dev/null
+++ b/exerc090.py
@@ -0,0 +1,77 @@
+import random
+print('-==-'*50)
+print('AULA 19 - VARIÁVEIS COMPOSTAS - DICIONÁRIOS')
+print('-==-'*50)
+
+#REVISAO
+#= TUPLAS ()
+#= LISTA []
+#= DICIONÁRIOS {}
+
+dados = dict() # dados={}
+
+dados={'nome':'Gregorio','idade':29,'sexo':'M','nome':'Amanda','idade':31,'sexo':'F'}
+print(dados)
+del dados['sexo']
+dados['peso']=50
+print(dados)
+filmes={
+ 'titulo':'Star Wars' ,
+ 'ano':1977 ,
+ 'diretor':'George Lucas'
+
+ }
+print(filmes)
+print(filmes.values())
+print(filmes.keys())
+print(filmes.items())
+print()
+
+for k,v in filmes.items():
+ print(f'O {k} é {v}')
+print('\n')
+brasil = []
+estado_1 = {'uf':'Rio de Janeiro','sigla':'RJ'}
+estado_2 = {'uf':'São Paulo','sigla':'SP'}
+brasil.append(estado_1)
+brasil.append(estado_2)
+print(brasil[0])
+print(brasil[0]['sigla'])
+print(brasil)
+
+estado = dict()
+brasil = list()
+
+for c in range(0,3):
+ estado['uf']=str(input('Unidade Federativa: ')).upper().strip()
+ estado['sigla']=str(input('Sigla do Estado: ')).upper().strip()[:2]
+ estado['populacao'] = float(input('População: '))
+ estado['governador'] = str(input('Governador: '))
+ brasil.append(estado.copy())
+print(brasil)
+print('\n')
+for e in brasil:
+ for k,v in estado.items():
+ print(f'O Campo {k} tem o valor {v}')
+print('\n')
+def nomeExercicio(e,titulo):
+ print('-==-'*50)
+ print(f'{"":^60}EXERCÍCIO {e} - {titulo}')
+ print('-==-'*50)
+nomeExercicio(90,'SITUAÇÃO DO ALUNO E MÉDIA')
+alunos = dict()
+alunos["nome"] = str(input('Nome do Aluno: '))
+alunos["nota1"] = float(input('Nota 1: '))
+alunos["nota2"] = float(input('Nota 2: '))
+alunos["media"] = (alunos["nota1"]+alunos["nota2"])/2
+
+if alunos["media"]<5:
+ alunos["situacao"]='REPROVADO'
+elif alunos["media"]<7:
+ alunos["situacao"] = 'RECUPERACAO'
+else:
+ alunos["situacao"] = 'APROVADO'
+
+print(alunos)
+for k,v in alunos.items():
+ print(f'O Campo {k} tem o valor {v}')
\ No newline at end of file
diff --git a/exerc091.py b/exerc091.py
new file mode 100644
index 0000000..b88e201
--- /dev/null
+++ b/exerc091.py
@@ -0,0 +1,43 @@
+from random import randint
+
+
+def nomeExercicio(e,titulo):
+ print('-==-'*50)
+ print(f'{"":^60}EXERCÍCIO {e} - {titulo}')
+ print('-==-'*50)
+nomeExercicio(91,'Jogando Dados - 4 jogadores')
+j=1
+sorteioDados = []
+jogador={}
+
+while j<5:
+ num = randint(1, 6)
+ jogador={'jogador':j,'dado':num}
+ #sorteioDados.append(jogador)
+ sorteioDados.append(jogador.copy())
+ print(f'O jogador {j}º tirou {num}')
+ j+=1
+print("RANKING DOS CLASSIFICAÇÃO")
+
+#for k,v in enumerate(sorteioDados):
+# print(f'O {k} é {v}')
+#print('\n')
+
+OrdenandoListaPeloDadosMaior = sorted(sorteioDados, key=lambda k: k['dado'],reverse=True)
+print(OrdenandoListaPeloDadosMaior)
+print(sorteioDados)
+j=1
+print("RANKING DOS CLASSIFICAÇÃO")
+for v in (OrdenandoListaPeloDadosMaior):
+ print(f'{j}º lugar - O jogador {v["jogador"]}º - tirou no dado {v["dado"]}')
+ j+=1
+print('\n')
+
+
+
+#print(sorted(sorteioDados))
+#for i in sorted (sorteioDados) :
+# print ((i, sorteioDados[i]), end =" ")
+
+#alternativa - importar o método itemgetter da lib operator
+#OrdenandoListaPeloDadosMaior = sorted(sorteioDados, key=itemgetter(1), reverse=True)
\ No newline at end of file
diff --git a/exerc092.py b/exerc092.py
new file mode 100644
index 0000000..0fed152
--- /dev/null
+++ b/exerc092.py
@@ -0,0 +1,26 @@
+from datetime import date
+def nomeExercicio(titulo):
+ print('-==-'*50)
+ print(f'{"":^60} {titulo}')
+ print('-==-'*50)
+nomeExercicio('EXERCÍCIO 92 - Cadastro de trabalhador ')
+
+pessoa = {}
+while True:
+ pessoa["nome"] = str(input('Nome: ')).upper().strip()
+ pessoa["nasc"] =int(input('Ano de Nascimento: '))
+ pessoa["idade"] = date.today().year - pessoa["nasc"]
+ pessoa["cpts"] = int(input('Carteira de Trabalho (0 não tem): '))
+ if pessoa["cpts"]==0:
+ break
+ pessoa["contratacao"] = int(input('Ano de Contratação: '))
+ pessoa["salario"] = float(input('Salário: R$'))
+ pessoa["aposentadoria"] =(40 - (date.today().year - pessoa["contratacao"] )) + date.today().year
+ pessoa["aposentado"] =pessoa["aposentadoria"]-pessoa["nasc"]
+
+ break
+print('-==-' * 50)
+for k,v in pessoa.items():
+ print(f"O campo: {k} tem o valor: {v}")
+print()
+print(pessoa)
diff --git a/exerc093.py b/exerc093.py
new file mode 100644
index 0000000..7b1d900
--- /dev/null
+++ b/exerc093.py
@@ -0,0 +1,45 @@
+def nomeExercicio(titulo):
+ print('-==-'*50)
+ print(f'{"":^60} {titulo}')
+ print('-==-'*50)
+nomeExercicio('EXERCÍCIO 93 - APROVEITAMENTO JOGADOR DE FUTEBOL')
+artilheiros = []
+desempenho = {}
+aproveitamento =[]
+gols_feito = []
+while True:
+ desempenho = {}
+ gols_feito = []
+ desempenho["nome"]= str(input('Jogador: ')).upper().strip()
+
+ p = int(input('Partidas que jogou: '))
+ desempenho["partidas"] = p
+ aproveitamento.append(desempenho)
+
+ for j in range(1,p+1):
+ gols = int(input(f'Gols na {j}ª partida: '))
+ gols_feito.append({"partida":j,"gols":gols})
+ desempenho["gols"] = gols_feito
+
+ artilheiros.append(desempenho.copy())
+ print()
+ r = str(input('DESEJA CONTINUAR? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
+print()
+# print(f"{artilheiros[0]}")
+# print()
+# print(f"{artilheiros[1]}")
+# print()
+jog = []
+for j in range(0,len(artilheiros)):
+ golz =artilheiros[j]['gols']
+ totGols=0
+ for g in range (0,len(golz)):
+ totGols=totGols+golz[g]['gols']
+ jog.append({"jogador":artilheiros[j]['nome'],"partidas":artilheiros[j]['partidas'],"gols": totGols,"aproveitamento":totGols/artilheiros[j]['partidas']})
+ print(f'Jogador: {artilheiros[j]["nome"]} - realizou {artilheiros[j]["partidas"]} partidas e marcou: {totGols} gols. COM UM APROVEITAMENTO {totGols/artilheiros[j]["partidas"]} gols por partida.')
+
+#print(jog)
+
+#https://www.alura.com.br/artigos/trabalhando-com-o-dicionario-no-python
\ No newline at end of file
diff --git a/exerc094.py b/exerc094.py
new file mode 100644
index 0000000..7e1a2ff
--- /dev/null
+++ b/exerc094.py
@@ -0,0 +1,42 @@
+print('-==-'*50)
+print('EXERCÍCIO 94 - UNINDO DICIONÁRIOS E LISTAS')
+print('-==-'*50)
+
+pessoas=[]
+pessoa={}
+soma_idade=0
+mulheres = []
+pessoas_velhas = []
+while True:
+ pessoa["nome"] = str(input('Nome: ')).upper().strip()
+ pessoa["idade"] = int(input('Idade: '))
+ pessoa["sexo"]= str(input('sexo: ')).upper().strip()[0]
+ pessoas.append(pessoa)
+ if pessoa["sexo"] in 'Ff':
+ mulheres.append(pessoa)
+ soma_idade = soma_idade + pessoa["idade"]
+ r = str(input('DESEJA CONTINUAR? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
+ pessoa={}
+media_idade = soma_idade/len(pessoas)
+print(f"Foram cadastradas {len(pessoas)} pessoas no sistema")
+print(f"A média de idade é: {media_idade} anos entre as pessoas no sistema")
+#print(pessoas)
+if len(mulheres)>0:
+ print("As mulheres cadastradas no sistema são: ")
+ for key, m in enumerate(mulheres):
+ print(f"{m['nome']}",end=' ')
+else:
+ print("Não foi cadastrado MULHERES no sistema")
+
+for k,p in enumerate(pessoas):
+ #print(k,p)
+ if(p['idade']> media_idade):
+ pessoas_velhas.append(p)
+print()
+if len(pessoas_velhas)>0:
+ print(pessoas_velhas)
+else:
+ print("Não Tem Pessoas Com mais Idade que a média")
+
diff --git a/exerc095.py b/exerc095.py
new file mode 100644
index 0000000..21b01cd
--- /dev/null
+++ b/exerc095.py
@@ -0,0 +1,61 @@
+def nomeExercicio(titulo):
+ print('-==-'*50)
+ print(f'{"":^60} {titulo}')
+ print('-==-'*50)
+nomeExercicio('EXERCÍCIO 95 - DESEMPENHO DO JOGADORES')
+
+artilheiros = []
+desempenho = {}
+aproveitamento =[]
+gols_feito = []
+while True:
+ desempenho = {}
+ gols_feito = []
+ desempenho["nome"]= str(input('Jogador: ')).upper().strip()
+ p = int(input('Partidas que jogou: '))
+ desempenho["partidas"] = p
+ aproveitamento.append(desempenho)
+
+ for j in range(1,p+1):
+ gols = int(input(f'Gols na {j}ª partida: '))
+ gols_feito.append({"partida":j,"gols":gols})
+ desempenho["gols"] = gols_feito
+
+ artilheiros.append(desempenho.copy())
+ print()
+ r = str(input('DESEJA CONTINUAR? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
+ else:
+ print('--' * 50)
+
+print()
+
+jog = []
+for j in range(0,len(artilheiros)):
+ golz =artilheiros[j]['gols']
+ totGols=0
+ for g in range (0,len(golz)):
+ totGols=totGols+golz[g]['gols']
+ jog.append({"jogador":artilheiros[j]['nome'],"partidas":artilheiros[j]['partidas'],"gols": totGols,"aproveitamento":totGols/artilheiros[j]['partidas']})
+ print(f'Jogador: {artilheiros[j]["nome"]} - realizou {artilheiros[j]["partidas"]} partidas e marcou: {totGols} gols. COM UM APROVEITAMENTO {totGols/artilheiros[j]["partidas"]} gols por partida.')
+
+print('LEVANTAMENTO')
+print(artilheiros)
+print("Código JOGADOR GOLS | TOTAL | APROVEITAMENTO")
+x = 1
+for a in artilheiros:
+ gz =[]
+ for g in range (0,len(a['gols'])):
+ gz.append(a['gols'][g]['gols'])
+ #print(f'{x} {"":>7}{a["nome"]}{"":>5}{gz}{"":>5}{totGols}')
+ print(f'{x} {a["nome"]:^15} {gz} {sum(gz)} {sum(gz)/len(gz)}')
+ x = x+1
+
+while True:
+ tam = len(artilheiros)
+ cod = int(input("Mostrar dados de qual jogador?: "))
+ if cod<0 or cod > tam:
+ break
+ print("-- LEVANTAMENTO DO JOGADOR ")
+ print(artilheiros[cod-1])
diff --git a/exerc096.py b/exerc096.py
new file mode 100644
index 0000000..dfa2c1b
--- /dev/null
+++ b/exerc096.py
@@ -0,0 +1,10 @@
+def nomeExercicio(titulo):
+ print('-==-'*50)
+ print(f'{"":^60} {titulo}')
+ print('-==-'*50)
+nomeExercicio('EXERCÍCIO 95 - ')
+
+def breakLoop():
+ r = str(input('DESEJA CONTINUAR? [S/N]')).upper().strip()[0]
+ if r in 'Nn':
+ break
\ No newline at end of file
diff --git a/exerc097.py b/exerc097.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc098.py b/exerc098.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc099.py b/exerc099.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc100.py b/exerc100.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc101.py b/exerc101.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc102.py b/exerc102.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc103.py b/exerc103.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc104.py b/exerc104.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc105.py b/exerc105.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc106.py b/exerc106.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc107.py b/exerc107.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc108.py b/exerc108.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc109.py b/exerc109.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc110.py b/exerc110.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc111.py b/exerc111.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc112.py b/exerc112.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc113.py b/exerc113.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc114.py b/exerc114.py
new file mode 100644
index 0000000..e69de29
diff --git a/exerc115.py b/exerc115.py
new file mode 100644
index 0000000..e69de29
diff --git a/mp3/About_That_Oldie.mp3 b/mp3/About_That_Oldie.mp3
new file mode 100644
index 0000000..e87751c
Binary files /dev/null and b/mp3/About_That_Oldie.mp3 differ
diff --git a/mp3/African_Drums_Sting.mp3 b/mp3/African_Drums_Sting.mp3
new file mode 100644
index 0000000..23af1cc
Binary files /dev/null and b/mp3/African_Drums_Sting.mp3 differ
diff --git a/mp3/At_Rest_Romance.mp3 b/mp3/At_Rest_Romance.mp3
new file mode 100644
index 0000000..523224f
Binary files /dev/null and b/mp3/At_Rest_Romance.mp3 differ
diff --git a/mp3/Birds_in_Flight.mp3 b/mp3/Birds_in_Flight.mp3
new file mode 100644
index 0000000..a47b8b9
Binary files /dev/null and b/mp3/Birds_in_Flight.mp3 differ
diff --git a/mp3/Bongo_Madness.mp3 b/mp3/Bongo_Madness.mp3
new file mode 100644
index 0000000..11fe750
Binary files /dev/null and b/mp3/Bongo_Madness.mp3 differ
diff --git a/mp3/Bubblegum_Ballgame.mp3 b/mp3/Bubblegum_Ballgame.mp3
new file mode 100644
index 0000000..7950f9d
Binary files /dev/null and b/mp3/Bubblegum_Ballgame.mp3 differ
diff --git a/mp3/Casey_Dont_You_Fret.mp3 b/mp3/Casey_Dont_You_Fret.mp3
new file mode 100644
index 0000000..2980365
Binary files /dev/null and b/mp3/Casey_Dont_You_Fret.mp3 differ
diff --git a/mp3/Clover_3.mp3 b/mp3/Clover_3.mp3
new file mode 100644
index 0000000..be7fdfc
Binary files /dev/null and b/mp3/Clover_3.mp3 differ
diff --git a/mp3/Firefly.mp3 b/mp3/Firefly.mp3
new file mode 100644
index 0000000..0e03b73
Binary files /dev/null and b/mp3/Firefly.mp3 differ
diff --git a/mp3/Giant.mp3 b/mp3/Giant.mp3
new file mode 100644
index 0000000..ac8c2a1
Binary files /dev/null and b/mp3/Giant.mp3 differ
diff --git a/mp3/Grasshopper.mp3 b/mp3/Grasshopper.mp3
new file mode 100644
index 0000000..51bcf93
Binary files /dev/null and b/mp3/Grasshopper.mp3 differ
diff --git a/mp3/Happy_Boy_Theme.mp3 b/mp3/Happy_Boy_Theme.mp3
new file mode 100644
index 0000000..1d2e690
Binary files /dev/null and b/mp3/Happy_Boy_Theme.mp3 differ
diff --git a/mp3/Happy_Little_Elves.mp3 b/mp3/Happy_Little_Elves.mp3
new file mode 100644
index 0000000..751f568
Binary files /dev/null and b/mp3/Happy_Little_Elves.mp3 differ
diff --git a/mp3/Happy_Mandolin.mp3 b/mp3/Happy_Mandolin.mp3
new file mode 100644
index 0000000..8f4654f
Binary files /dev/null and b/mp3/Happy_Mandolin.mp3 differ
diff --git a/mp3/If_I_Had_a_Chicken.mp3 b/mp3/If_I_Had_a_Chicken.mp3
new file mode 100644
index 0000000..f8cce4e
Binary files /dev/null and b/mp3/If_I_Had_a_Chicken.mp3 differ
diff --git a/mp3/Invincible.mp3 b/mp3/Invincible.mp3
new file mode 100644
index 0000000..a46b01e
Binary files /dev/null and b/mp3/Invincible.mp3 differ
diff --git a/mp3/Last_Train_to_Mars.mp3 b/mp3/Last_Train_to_Mars.mp3
new file mode 100644
index 0000000..ae2e4c6
Binary files /dev/null and b/mp3/Last_Train_to_Mars.mp3 differ
diff --git a/mp3/New_Land.mp3 b/mp3/New_Land.mp3
new file mode 100644
index 0000000..9635f02
Binary files /dev/null and b/mp3/New_Land.mp3 differ
diff --git a/mp3/Noel.mp3 b/mp3/Noel.mp3
new file mode 100644
index 0000000..37953ff
Binary files /dev/null and b/mp3/Noel.mp3 differ
diff --git a/mp3/Path_to_Follow.mp3 b/mp3/Path_to_Follow.mp3
new file mode 100644
index 0000000..243d3a6
Binary files /dev/null and b/mp3/Path_to_Follow.mp3 differ
diff --git a/mp3/Rize_Up.mp3 b/mp3/Rize_Up.mp3
new file mode 100644
index 0000000..a977cb2
Binary files /dev/null and b/mp3/Rize_Up.mp3 differ
diff --git a/mp3/Scratch_the_Itch.mp3 b/mp3/Scratch_the_Itch.mp3
new file mode 100644
index 0000000..381f243
Binary files /dev/null and b/mp3/Scratch_the_Itch.mp3 differ
diff --git a/mp3/Sharp_Senses.mp3 b/mp3/Sharp_Senses.mp3
new file mode 100644
index 0000000..3633d13
Binary files /dev/null and b/mp3/Sharp_Senses.mp3 differ
diff --git a/mp3/Sugar_Zone.mp3 b/mp3/Sugar_Zone.mp3
new file mode 100644
index 0000000..571e862
Binary files /dev/null and b/mp3/Sugar_Zone.mp3 differ
diff --git a/mp3/Valley_Drive.mp3 b/mp3/Valley_Drive.mp3
new file mode 100644
index 0000000..3a73313
Binary files /dev/null and b/mp3/Valley_Drive.mp3 differ
diff --git a/mp3/Yeah_Yeah.mp3 b/mp3/Yeah_Yeah.mp3
new file mode 100644
index 0000000..78d95a3
Binary files /dev/null and b/mp3/Yeah_Yeah.mp3 differ
diff --git a/mp3/alien.flv b/mp3/alien.flv
new file mode 100644
index 0000000..79d663d
--- /dev/null
+++ b/mp3/alien.flv
@@ -0,0 +1,9 @@
+
+
+404 Not Found
+
+Not Found
+The requested URL /gallery/alien.flv was not found on this server.
+Additionally, a 404 Not Found
+error was encountered while trying to use an ErrorDocument to handle the request.
+
diff --git a/precedencia.PNG b/precedencia.PNG
new file mode 100644
index 0000000..ff9c346
Binary files /dev/null and b/precedencia.PNG differ
diff --git a/questao.py b/questao.py
new file mode 100644
index 0000000..2305f07
--- /dev/null
+++ b/questao.py
@@ -0,0 +1,6 @@
+print('Quantas palavras de comprimento 6 podemos formar com as letras a,b,c,d, de modo que cada uma das letras apareça pelo menos uma vez e que a letra "a" apareça exatamente uma vez.')
+
+letras = ['A','B','C','D']
+
+repete = ['B','C','D']
+