I need a proper solution to search for a key in a nested data structures in Python.
Lets assume that I have variable with value \'check\' and dict like this:
Simply iterate over the dictionary keys and check if check is one of the values of the value corresponding to the key. If you find it then give it to the next call.
print next(key for key in SERVICES if 'check' in SERVICES[key])
# domain