I have a set and dictionary and a value = 5
v = s = {\'a\', \'b\', \'c\'} d = {\'b\':5 //<--new value}
If the key \'b\' in dictionary d
This should solve your problem:
>>> dict((k, d.get(k, 0)) for k in s) {'a': 0, 'c': 0, 'b': 5}