Computer Science

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

Python Data Handling

11 Likes

Answer

The correct output of the above code is:

Option (c) — 8 7 7.5

Answered By

6 Likes


Related Questions