Challenge: Calculate the Mean, Median, and Mode of a List

Write code to calculate the mean, median, and mode of elements in a list.

Write a program to find the mean, median, and mode of a list of numbers:

  • Input: A list lst of numbers.
  • Output: Original list lst, mean, median, and mode of numbers.

Get hands-on with 1200+ tech skills courses.