@valoro/

media_ponderada_2

Python

http://altocodigo.blogspot.com/2018/07/media-ponderada.html

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5005862650566189","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"eD1bNyw0LDksMyw2LDEwXSAjTm90YXMKdz1bLjEsLjA1LC4yNSwuMDYsLjA5LC40NV0gI1Blc29zCnByaW50KHJvdW5kKHN1bShpKmogZm9yIGksaiBpbiB6aXAoeCx3KSksNikp"},"asBuffer":null},"loaded":true}}
1
2
3
x=[7,4,9,3,6,10] #Notas
w=[.1,.05,.25,.06,.09,.45] #Pesos
print(round(sum(i*j for i,j in zip(x,w)),6))