['
[email protected]']
Question 4: (3 marks)
Write a function that takes a list of words (containing duplicates) and returns a list of words (with no duplicates) sorted by ascending frequency.
Input:
['table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'table', 'chair', 'chair', 'chair','chair', 'chair', 'chair', 'chair', 'chair', 'chair']
Output:
['chair', 'table']
Zoom
+ 100%
Close