Previous

Find the no. of frequency

Next

# write a program to find the number of frequecy of the given list

num = [1,2,1,1,3,4,3,2,6,5] # output should be [3,2,2,1,1,1]
 

fre_list = []
element = []
for i in num:
    if i not in element:
        freq = num.count(i)
        fre_list.append(freq)
        element.append(i)
    else:
        continue
print('fre_list ',fre_list)