Python - selectively add up values while iterating through dictionary of dictionaries
I have a following dictionary: 

     result = {key:value}
     dict = {key1:{value1:value2}, key2:{value3:value4}, key3{value5:value6}, key4:{value7:value8}...}

I need to iterate through it and 
     
    if (value2+value3 == 3):
             result[key1] = key2


Any recommendations on how to do that?

Thanks!
Python - selectively add up values while iterating through dictionary of dictionaries
===

I have a following dictionary: 

     result = {key:value}
     dict = {key1:{value1:value2}, key2:{value3:value4}, key3{value5:value6}, key4:{value7:value8}...}

I need to iterate through it and 
     
    if (value2+value3 == 3):
             result[key1] = key2


Any recommendations on how to do that?

Thanks!