def find_majority(k):
    myMap = {}
maximum = '', 0
for n in k:
    if n in myMap:
        myMap[n] += 1
else:
    myMap[n] = 1
if myMap[n] > maximum[1]:
    maximum = n, myMap[n]
return maximum
Trying to find majority element in a list