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

fc428c33cbb3138389b2c29d4c17301b7b75c50e
<mask token>

def complex_delete(a_dictionary, value):
    for a, b in list(a_dictionary.items()):
        if b == value:
            del a_dictionary[a]
    return a_dictionary

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