Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 10, 2022 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/594dd11f7661ce415c1eee466741b6b0 to your computer and use it in GitHub Desktop.
Save parzibyte/594dd11f7661ce415c1eee466741b6b0 to your computer and use it in GitHub Desktop.
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