Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def notas_mision_mintic(notas_estudiantes:list)->list:
- salida = []
- pesos_items = [0.1,0.1,0.2,0.2,0.2,0.2]
- for estudiante in notas_estudiantes:
- nombre = estudiante[0]
- apellido = estudiante[1]
- notas = estudiante[2:]
- promedio = 0
- for nota, peso in zip(notas,pesos_items):
- promedio+= nota*peso
- promedio = round(promedio,2)
- aprobo = "aprobo"
- if promedio<3.0:
- aprobo = "no aprobo"
- info_estudiante = (nombre, apellido, promedio, aprobo)
- salida.append(info_estudiante)
- return salida
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement