Solved

What Is the Output of the Following Program

Question 27

Multiple Choice

What is the output of the following program?
Temp = dict()
Temp['key1'] = {'key1' : 44, 'key2' : 566}
Temp['key2'] = [1, 2, 3, 4]
For (key, values) in temp.items() :
Print(values, end = "")


A) Compilation error
B) {„key1?: 44, „key2?: 566}[1, 2, 3, 4]
C) Runtime error
D) None of the above

Correct Answer:

verifed

Verified

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

Related Questions