← Quiz: Statistics: all 10 questions
Quiz: Statistics · Question 6 of 10
What does this print? (code)
What does this print?
import numpy as np
packages = np.array([4, 4, 5, 6, 41])
print(packages.mean(), np.median(packages))
- A.5.0 12.0
- B.12.0 5.0
- C.12.0 6.0
- D.5.0 5.0
Answer & explanation
Correct answer: 12.0 5.0
One 41 LPA offer pulls the mean to 12; the median stays at 5.
Can you get the rest right without peeking?
Take the timed Quiz: Statistics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →