Access to only one attribute:
sum(item['one'] for item in tadas.values())
It takes advantage of the fact that Trueequal 1, but Falseequal 0.
If not every element contains a key 'one', you should use the method .get:
sum(item.get('one', 0) for item in tadas.values())
.get returns the second argument if the dict does not contain the first argument.
If 'one'it can also point to numbers, you should explicitly test is True:
sum(item.get('one', 0) is True for item in tadas.values())
If you do not want to hide the summation in the logical, you can do this more explicitly with:
sum(1 if item.get('one', False) is True else 0 for item in tadas.values())