HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50010 - Weighted Average"

mxhemallari2508:28:08 PM
0#mxhemallari

score= []
weights= []

weighted_parts = [scores[i] * weights[i] for i in range(len(scores))]

result = sum(weighted_parts) / sum(weights)

print(result)


www.contester.ru