1.Exam score summary
BeginnerGiven the scores [67, 82, 91, 58, 74, 88, 95, 61], use NumPy to print the mean (1 decimal), the median, the highest score and its position, and how many scores are 75 or more.
Show hint
np.array, .mean(), np.median, .max(), .argmax(), and (arr >= 75).sum().
Show solution
import numpy as np
scores = np.array([67, 82, 91, 58, 74, 88, 95, 61])
print(round(scores.mean(), 1), np.median(scores))
print(scores.max(), scores.argmax())
print((scores >= 75).sum())77.0 78.0
95 6
4