#!/usr/bin/python3
def complex_delete(a_dictionary, value):
    new_dec = a_dictionary.copy()
    for a in new_dec:
        if a_dictionary[a] == value:
            del a_dictionary[a]
    return a_dictionary

42d328479fb6c5f3cebc2eca39f5fd0bec049ae6
<mask token>

def complex_delete(a_dictionary, value):
    new_dec = a_dictionary.copy()
    for a in new_dec:
        if a_dictionary[a] == value:
            del a_dictionary[a]
    return a_dictionary

#!/usr/bin/python3
def complex_delete(a_dictionary, value):
    new_dec = a_dictionary.copy()
    for a in new_dec:
        if a_dictionary[a] == value:
            del a_dictionary[a]
    return a_dictionary
