Answer:
<em>Python Programming Language</em>
import statistics
mylist = [27, 5, 18, 66, 12, 5, 9]
print("Mode: ",statistics.mode(mylist))
print("Median: ",statistics.median(mylist))
print("Mean: ",statistics.mean(mylist))
Explanation:
This line imports stats.py into the program
import statistics
This line defines a list <em>(The example list in the program)</em>
mylist = [27, 5, 18, 66, 12, 5, 9]
This line uses the defined function to calculate and print the mode
print("Mode: ",statistics.mode(mylist))
This line uses the defined function to calculate and print the median
print("Median: ",statistics.median(mylist))
This line uses the defined function to calculate and print the mean
print("Mean: ",statistics.mean(mylist))