1

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)

Correct Answer: („Google‟, 1) („Facebook‟, 2) („Youtube‟, 3) („Microsoft‟, 2) („GFG‟, 1)

Make the most of this question

This page focuses on one Python Programming question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Python Programming MCQ: 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) | Extra Education