Solved

What Is the Output of the Following Program

Question 17

Multiple Choice

What is the output of the following program?
D = dict()
For i in range (3) :
For j in range(2) :
D[i] = j
Print(D)


A) {0: 0, 1: 0, 2: 0}
B) {0: 1, 1: 1, 2: 1}
C) {0: 0, 1: 0, 2: 0, 0: 1, 1: 1, 2: 1}
D) TypeError: Immutable object

Correct Answer:

verifed

Verified

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

Related Questions