Edit: I've updated my question to clarify my goal.
Is there a way to speed-up this code by using reduce() or some other fast method rather than the for loop? I looked at many similar questions but I did not find an answer.
old_dict = {'a': 1, 'b': 2, 'c': 3}
keys = ['a', 'c', 'd']
new_dict = {}
for key in keys:
new_dict[key] = old_dict.get(key)
print(new_dict)
# prints:
# {'a': 1, 'c': 3, 'd': None}