#prints to terminal

def belt_count(dictionary):
    belts = list(dictionary.values())
    for belt in set(belts):
        num = belts.count(belt)
        print(f"There are {num} {belt} belts")


# def ninja_intro(dictionary):
#     for key, val in dictionary.items():
#         print(f'I am {key}, and I am a {val} belt')

ninja_belts = {}

while True:
    ninja_name = input('Enter a ninja name: ')
    ninja_belt = input('Enter a belt color: ')
    ninja_belts[ninja_name] = ninja_belt

    another = input('Add another? (y/n): ')
    if another == 'y' or another == 'yes':
        continue
    else:
        break;

#ninja_intro(ninja_belts)
belt_count(ninja_belts)

#sort()
#set()
#sets do not have duplicates, but do not sort