A
Q. What is the output of the following program?
Code:
D = dict()
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
- Correct Answer - Option(C)
- Views: 22
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.