Given a list of integers, write a function that computes the number of occurrences (frequency) of the most frequent value and the number of occurrences of the least frequent value.
most_least_frequent([10, 20, 20, 30, 30, 30]) (3, 1)
Additional instructions in the code editor:
# provided input values = [10, 20, 30, 10, 30, 10] # answer to this input: 3, 1
This doesn’t really make sense. In the first list, 30 is the most common value, not 3. If you were looking for us to separate out each integer into individual digits, then 0 would be the most common digit. Additionally, in the second list, 10 is the most common value. Could you please review and either clarify or fix these issues?