I am trying to merge between 2 dictionaries by using update() but I get "None" when I try to print the function's result
def merge_dictionaries(dict1,dict2):
return dict1.update(dict2)
dict1 = {'Ten': 10, 'Twenty': 20, 'Thirty': 30}
dict2 = {'Thirty': 30, 'Fourty': 40, 'Fifty': 50}
print(merge_dictionaries(dict1,dict2))
why do I get None?
I tried to change the input values but nothing have changed/