x = [1,2,3,4,4,1,2,3,4,5,1,1,1,4,89,0,1,7]
dict ={}
for i in x:
if i not in dict:
dict[i] = 1
else :
dict[i] = dict[i] + 1
print (dict)

Posted on by