 #without dictionary
def solution(data,n):
    
    for item in data: 
        print("key: "+item+" , value: "+data.count(item))
      

    
 #with dictionary
def solution(data,n):
   
    freq = {} 
    for item in data: 
        if (item in freq): 
            freq[item] += 1
        else: 
            freq[item] = 1

    for key, value in freq.items():
        print(key+" "+value)

    print(freq)

solution([1,2,2,3,3,3,4,5,5],1)
4814a5fede5ecace6954382dc37b384e80e081a0
<mask token>

def solution(data, n):
    for item in data:
        print('key: ' + item + ' , value: ' + data.count(item))


<mask token>

def solution(data, n):
    for item in data:
        print('key: ' + item + ' , value: ' + data.count(item))


def solution(data, n):
    freq = {}
    for item in data:
        if item in freq:
            freq[item] += 1
        else:
            freq[item] = 1
    for key, value in freq.items():
        print(key + ' ' + value)
    print(freq)


<mask token>

def solution(data, n):
    for item in data:
        print('key: ' + item + ' , value: ' + data.count(item))


def solution(data, n):
    freq = {}
    for item in data:
        if item in freq:
            freq[item] += 1
        else:
            freq[item] = 1
    for key, value in freq.items():
        print(key + ' ' + value)
    print(freq)


solution([1, 2, 2, 3, 3, 3, 4, 5, 5], 1)

 #without dictionary
def solution(data,n):
    
    for item in data: 
        print("key: "+item+" , value: "+data.count(item))
      

    
 #with dictionary
def solution(data,n):
   
    freq = {} 
    for item in data: 
        if (item in freq): 
            freq[item] += 1
        else: 
            freq[item] = 1

    for key, value in freq.items():
        print(key+" "+value)

    print(freq)

solution([1,2,2,3,3,3,4,5,5],1)