Good morning, people.
I need help resolving some of the college exercise. The problem is relatively simple, but I'm having difficulties.
My code is as follows:
# Subprogramas
def verifica_peso(pesos):
if pesos > 10:
print("A soma dos pesos é maior do que 10.")
# Programa Principal
a, b, c, d, e = map(float, input().split()) # Definindo o peso das notas.
pesos = (a + b + c + d + e)
verifica_peso(pesos)
qnt_candidatos = int(input())
And what I need to do now is to allow the user to enter, through the input (), with the name, age and 5 notes of the candidates, all in the same input. Example of entry:
Ana 30 8.3 4.5 9.2 4.0 6.6
João 25 2.0 3.4 8.9 7.2 4.4
Pedro 30 7.8 5.0 9.2 6.0 4.6
Maria 28 5.0 6.0 7.0 5.0 4.0
Thiago 40 6.5 4.5 7.0 4.5 4.5
Raquel 26 10.0 10.0 10.0 10.0 10.0
Then I will need to use the information in the notes to make the average and age as a tiebreaker.
I thought about using dict (), but I do not know exactly how it would apply. Can you help me?
Thank you for your attention!