Q. What is the output of the following program?
data = [2, 3, 9]
temp = [[x for x in[data]] for x in range(3)]
print (temp)
data = [2, 3, 9]
temp = [[x for x in[data]] for x in range(3)]
print (temp)
β
Correct Answer: (A)
[[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]