Explain Dictionary with suitable program. code example
Example 1: Python New Disctionary
new_dict = dict()
#OR
new_dict = {}
Example 2: python dict access
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']
new_dict = dict()
#OR
new_dict = {}
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']