0
atletas = []
while True:
nome = input("Nome: ")
if not nome: break
saltos = []
for i in range(3):
salto = float(input("Distância {}: ".format(i+1)))
saltos.append(salto)
atletas.append({
"nome": nome,
"saltos": saltos
})
for atleta in atletas:
print("Nome:", atleta["nome"])
print("Saltos:", atleta["saltos"])
print("Média:", sum(atleta["saltos"])/3)
Welcome to Stackoverflow in English. Start by doing Tour on the site to better understand how it works. Then avoid asking questions only with code. Try to detail your problem to the fullest so that it is clear to everyone and is easy to get help. Do not hesitate to see also how to ask
– Isac