CBSE Class 11 Computer Science
Question 148 of 173
Data Handling — Question 37
Back to all questions 37
Question Question 24
Consider the code given below:
import statistics as st
v = [7, 8, 8, 11, 7, 7]
m1 = st.mean(v)
m2 = st.mode(v)
m3 = st.median(v)
print(m1, m2, m3)Which of the following is the correct output of the above code?
(a) 7 8 7.5
(b) 8 7 7
(c) 8 7 7.5
(c) 8.5 7 7.5
Answer
The correct output of the above code is:
Option (c) — 8 7 7.5