-
-
Save parzibyte/ba10f3e353550fde447d8b21d6d732e6 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
""" | |
La lista queda así: | |
Si tiene menos de 6, es Insuficiente | |
En caso de tener 6, es Irregular | |
Con un 7 es Regular | |
Si tiene 8, es Bueno | |
Con un 9 es Muy bueno | |
Si tiene 10, es Excelente | |
Visita: parzibyte.me | |
""" | |
# Al escanear se devuelve como cadena | |
promedio_como_cadena = input("Dime tu promedio: ") | |
# Convertir a float | |
promedio = float(promedio_como_cadena) | |
# Hacer la comparación | |
if promedio < 6: | |
print("Insuficiente") | |
elif promedio == 6: | |
print("Irregular") | |
elif promedio == 7: | |
print("Regular") | |
elif promedio == 8: | |
print("Bueno") | |
elif promedio == 9: | |
print("Muy bueno") | |
elif promedio == 10: | |
print("Excelente") | |
else: | |
# Ninguna condición de arriba se cumplió, así que... | |
print("Promedio inválido") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment