The stable version of Python 3.9.0 has been released on 5th October 2020. Let’s see the new major features.

Dictionary Merging

Consider two dictionaries having the same key-value pairs except one of the values in one dictionary. For example, a person’s email id has been changed recently which is in a new dictionary(b) and you would like to update the email id in the original dictionary(a) containing other details.

a = {'id' : 10, 'username' : 'python3.9', 'email' : 'oldpython@gmail.com'}
b = {'id' : 10, 'username' : 'python3.9', 'email' : 'newpython@gmail.com'}

There are two ways to do it(updating dictionary a) in Python 3.9.

#python3 #python #python-programming

Python 3.9 Updates in 2 Minutes
2.75 GEEK