49
E X E R C I S E # 1 6 : M O D E
mode([1, 1, 2, 3, 4])
→
1
Mode is the third statistical calculation exercise in this book. The mode is the number that appears
most frequently in a list of numbers. Together with the median and average, you can get a descriptive
summary of a list of numbers. This exercise tests your ability to use a dictionary to keep a count of the
numbers in a list to find the most frequent number.
Dostları ilə paylaş: