I have the following Python script where I merge two dictionaries:
dict1 = {'bookA': 1, 'bookB': 2, 'bookC': 3}
dict2 = {'bookC': 2, 'bookD': 4, 'bookE': 5}
print dict2.update(dict1)
Why do I get as output None
rather than the merged dictionaries? How can I display the result?
Thanks.