DEV Community

Discussion on: How to Merge Two Dictionaries in Python

Collapse
 
renegadecoder94 profile image
Jeremy Grifski • Edited

Yeah, that works too! Though, I’m not a huge fan of introducing an alias just for the sake of performance, but that’s just me.

Also, if we’re talking hypotheticals, it might be useful to maintain the old dictionaries since an update is going to overwrite any duplicate keys.