πŸ“Š Python
Q. What will be the output of the following code snippet?
Code:
dict1 = {'first' : 'sunday', 'second' : 'monday'}
dict2 = {1: 3, 2: 4}
dict1.update(dict2)
print(dict1)
  • (A) {'first': 'sunday', 'second': 'monday', 1: 3, 2: 4}
  • (B) {'first': 'sunday', 'second': 'monday'}
  • (C) {1: 3, 2: 4}
  • (D) None of the above.
πŸ’¬ Discuss
βœ… Correct Answer: (A) {'first': 'sunday', 'second': 'monday', 1: 3, 2: 4}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2276
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
81%
Success Rate