📊 Python
Q. Predict the output of following python programs
dictionary1 = {'Google' : 1,
'Facebook' : 2,
'Microsoft' : 3
}
dictionary2 = {'GFG' : 1,
'Microsoft' : 2,
'Youtube' : 3
}
dictionary1.update(dictionary2);
for key, values in dictionary1.items():
print(key, values)
  • (A) Compilation error
  • (B) Runtime error
  • (C) („Google‟, 1) („Facebook‟, 2) („Youtube‟, 3) („Microsoft‟, 2) („GFG‟, 1)
  • (D) None of these
💬 Discuss
✅ Correct Answer: (C) („Google‟, 1) („Facebook‟, 2) („Youtube‟, 3) („Microsoft‟, 2) („GFG‟, 1)

You must be Logged in to update hint/solution

💬 Discussion


📊 Question Analytics

👁️
127
Total Visits
📽️
2 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
99%
Success Rate