#1
lista = [16, 14, 63, 65, 17, 99, 70, 11, 20, 48, 79, 32, 17, 89, 12, 25, 66]
lista.sort()
print(f'A lista possui {len(lista)} números em que o maior número é {lista[-1]} e o menor número é {lista[0]}. A soma dos valores presentes nela é igual a {sum(lista)}')
#2 sem função
numero = int(input('Digite um número e descubra a tabuada: '))
for i in range(0,11):
print(f'{numero} x {i} = {numero * i}')
#2 com função
def tabuada():
x = int(input('Digite um número e descubra a tabuada: '))
for i in range(0,11):
print(f'{x} x {i} = {x * i}')
tabuada()
#3
lista = [97, 80, 94, 88, 80, 1, 16, 53, 62, 32, 24, 99]
mult_3 = []
def multiplos_3(lista: list):
for i in range(len(lista)):
if lista[i] % 3 ==0:
mult_3.append(lista[i])
return mult_3
mult_3 = multiplos_3(lista)
print(mult_3)
#1
notas = []
for i in range(5):
nota = float(input('Digite sua nota: '))
notas.append(nota)
def media_nota(numero):
numero.remove(max(notas))
numero.remove(min(notas))
return sum(numero) / len(numero)
media_nota(notas)