dict1 = {'key1': {'a': 1, 'b': 2}, 'key2': {'a': 3, 'b': 4}, 'key3': {'a': 
    5, 'b': 6}}
print(sum(i['b'] for i in dict1.values()))

3cf004b064949e8f348fe6aa1a2cb821bfdad418
<mask token>

<mask token>
print(sum(i['b'] for i in dict1.values()))

dict1 = {'key1': {'a': 1, 'b': 2}, 'key2': {'a': 3, 'b': 4}, 'key3': {'a': 
    5, 'b': 6}}
print(sum(i['b'] for i in dict1.values()))
