Invalid / Unclear Instructions

Screen Link: https://app.dataquest.io/m/1013/functions%3A-intermediate-practice-problems/6/most-frequent-and-least-frequent

Instructions:
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.

For example:

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?

Frequency, not the item. I hope this helps.

2 Likes