Solved

Predict the Output of Following Python Programs

Question 26

Multiple Choice

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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions