2nd Most Popular

Write a function that accepts a list of numbers and returns the 2nd most popular number in the list.

Test the function with a list of 10 random numbers between the values of 1 and 5.

Print both the list and the 2nd most popular number. Do not print the list in the function -- do this as part of the main body of the program.

Note 1) A good resource for this tutorial is https://docs.python.org/3/library/collections.html#collections.Counter

Note 2) See my demo of how to use the Counter class from the collections library. By using this tutorial you should be able to think of a way to do this assignment.