-
-
Save parzibyte/0771d4db5c48f9104ecbeb1c12802f38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def imprimir_media_nota_superior_5(calificaciones): | |
sumatorias = obtener_alumnos_con_media(calificaciones) | |
media_minima = 5 | |
for alumno in sumatorias: | |
sumatoria = sumatorias[alumno]["sumatoria"] | |
conteo = sumatorias[alumno]["conteo"] | |
media = sumatoria/conteo | |
if media > media_minima: | |
print(f"{alumno} tuvo una media superior a {media_minima} ({media})") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment