Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mode = []
- highestCount = 0
- for i in input_list:
- if (input_list.count(i) > 1):
- if (input_list.count(i) > highestCount):
- mode = []
- mode.append(i)
- highestCount = input_list.count(i)
- if (input_list.count(i) == highestCount):
- mode.append(i)
- mode = list(set(mode))
- mode = list_sort(mode)
- return mode
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement