1# declaring dict
2dictionary={'Hello':3,'World!':4}
3# creating function
4def dict_add(obj,key,value):
5 obj[key]=value
6 reutrn obj
7# using the functiom
8dict_add(dictionary,'Python',10)
9print (dictionary) # output --> { 'Hello':3 ,'World!':4 , 'Python':10 }