Newbie to Python, so this may seem silly.
I have two dict:
default = {'a': 'alpha', 'b': 'beta', 'g': 'Gamma'}
user = {'a': 'NewAlpha', 'b': None}
I need to update my defaults with the values that exist in user. But only for those that have a value not equal to None. So I need to get back a new dict:
result = {'a': 'NewAlpha', 'b': 'beta', 'g': 'Gamma'}