python beetween (set(data), key=data.count) code example Example: count values in list usiing counter from collections import Counter