# objective: return all words that have multiple duplicate letters


def wordbuzz(arr):
    for word in arr:
        counts = {}
        for letter in word:
            if letter in counts:
                counts[letter] += 1
            else:
                counts[letter] = 1
        if max(counts.values()) > 1:
            print(word)


input_arr = ['hello', 'world', 'my', 'name', 'is', 'Noor']
wordbuzz(input_arr)
wordbuzz(['hi', 'bad', 'wooooorld!'])

d73033d1718e1cc37a4dcb9c8b16e28d915de439
<mask token>

def wordbuzz(arr):
    for word in arr:
        counts = {}
        for letter in word:
            if letter in counts:
                counts[letter] += 1
            else:
                counts[letter] = 1
        if max(counts.values()) > 1:
            print(word)


<mask token>

def wordbuzz(arr):
    for word in arr:
        counts = {}
        for letter in word:
            if letter in counts:
                counts[letter] += 1
            else:
                counts[letter] = 1
        if max(counts.values()) > 1:
            print(word)


<mask token>
wordbuzz(input_arr)
wordbuzz(['hi', 'bad', 'wooooorld!'])

def wordbuzz(arr):
    for word in arr:
        counts = {}
        for letter in word:
            if letter in counts:
                counts[letter] += 1
            else:
                counts[letter] = 1
        if max(counts.values()) > 1:
            print(word)


input_arr = ['hello', 'world', 'my', 'name', 'is', 'Noor']
wordbuzz(input_arr)
wordbuzz(['hi', 'bad', 'wooooorld!'])

# objective: return all words that have multiple duplicate letters


def wordbuzz(arr):
    for word in arr:
        counts = {}
        for letter in word:
            if letter in counts:
                counts[letter] += 1
            else:
                counts[letter] = 1
        if max(counts.values()) > 1:
            print(word)


input_arr = ['hello', 'world', 'my', 'name', 'is', 'Noor']
wordbuzz(input_arr)
wordbuzz(['hi', 'bad', 'wooooorld!'])
