from statistics import median samples_ms=[2,3,3,4,40] print(median(samples_ms)) print(max(samples_ms))