Weighted interview scores

Mediummatrix-vector productround· 20 XP

A hiring panel scores each candidate from 1 to 5 on coding, statistics and communication. The final score weights them 50%, 30% and 20%. The numbers are illustrative.

Store each candidate's weighted score (one number per row of scores), rounded to 2 decimals.

Expected answer

Store your answer in result.

Hints, the later steps and the answer come with Pro.

import numpy as np

scores = np.array([
    [4, 3, 5],
    [5, 4, 2],
    [3, 5, 4],
    [4, 4, 4],
    [2, 5, 5],
])
weights = np.array([0.5, 0.3, 0.2])
result = ...