from collections import Counter # Given list listA = [45, 20, 11, 50, 17, 45, 50,13, 45] print("Given List: ",listA) occurence_count = Counter(listA) res=occurence_count.most_common(1)[0][0] print("Element with highest frequency: ",res)