Python 3.9,as merge together with batman dict first it will keep order,not that it matter to much as mention.
>>> d = batman | super_hero_names >>> d {'Batman': 'Bruce', 'Superman': 'Clark Kent', 'Spiderman': 'Peter Parker'} >>> d.update(Batman = "Bruce Wayne") >>> d {'Batman': 'Bruce Wayne', 'Superman': 'Clark Kent', 'Spiderman': 'Peter Parker'}For Python 3.8
d = {**batman, **super_hero_names}
.