Python Program To Find Mean, Median, Mode From Given List

Aim:

Write a python program to Find mean, median, mode for the given set of numbers in a list.

Program:

from statistics import mean,median,mode
l = [15, 18, 2, 36, 12, 78, 5, 6, 9,18]
print("Mean",mean(l))
print("Median",median(l))
print("Mode",mode(l)) 

Execution:

Mean 19.9
Median 13.5
Mode 18 

Leave a Comment