Write a program for accessing elements from dictionary, changing, adding in dictionary elements for the given program? My_dict={‘name’: ‘bhargav’, ‘age’: 19} code example
Example: dictionary in python does not support append operation
dict_append = {"1" : "Python", "2" : "Java"}
dict_append.update({"3":"C++"}) # append doesn't supported in dict
# instead , use update in dict
print(dict_append)
# output : {'1': 'Python', '2': 'Java', '3': 'C++'}