[solved] – Question 93275
Assume that d has been initialized as an empty dictionary:
d = {}
Which of the following generates an error?
d[12] = 5
d[“1,2”] = 5
d[(1,2)] = 5
d[[1,2]] = 5
Expert Answer
OR
Assume that d has been initialized as an empty dictionary:
d = {}
Which of the following generates an error?
d[12] = 5
d[“1,2”] = 5
d[(1,2)] = 5
d[[1,2]] = 5
OR