Q. Write a Python script to merge two Python dictionaries.
Answer =
d1 = eval(input("Enter first dictionary :- "))
d2 = eval(input("Enter second dictionary :- "))
d1.update(d2)
print(d1)
Answer =
d1 = eval(input("Enter first dictionary :- "))
d2 = eval(input("Enter second dictionary :- "))
d1.update(d2)
print(d1)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )