Answer to Question #320310 in Python for vivek

Question #320310

2 6 3 1 8 12 2 9 10 3 4

find mean,median,mode


1
Expert's answer
2022-03-29T11:40:28-0400
import statistics
 
data = [2, 6, 3, 1, 8, 12, 2, 9, 10, 3, 4]
 
x = statistics.mean(data)
y = statistics.median(data) 
z = statistics.mode(data)

print("Mean is :", x)
print("Median is :", y)
print("Mode is :", z)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS