-
-
Save parzibyte/594dd11f7661ce415c1eee466741b6b0 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_años_con_media(): | |
lista = obtener_lista_facturacion() | |
for elemento in lista: | |
año = elemento["año"] | |
media = (elemento["trimestre1"] + elemento["trimestre2"] + | |
elemento["trimestre3"] + elemento["trimestre4"]) / 4 | |
print(f"Año {año} facturación media de {media} euros") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment