Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 11, 2020 00:02
Show Gist options
  • Save parzibyte/c99908383d8da3e74f3c13fa8a6ef7c9 to your computer and use it in GitHub Desktop.
Save parzibyte/c99908383d8da3e74f3c13fa8a6ef7c9 to your computer and use it in GitHub Desktop.
# Y el promedio se obtiene dividiendo la suma entre la cantidad de elementos
cantidad_elementos = len(arreglo)
promedio = suma / cantidad_elementos
print(f"El promedio es {promedio}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment