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)

A. [[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]
B. [[2, 3, 9], [2, 3, 9], [2, 3, 9]]
C. [[[2, 3, 9]], [[2, 3, 9]]]
D. None of these
Answer» A. [[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]
1.3k
0
Do you find this helpful?
3

View all MCQs in

Python Programming

Discussion

No comments yet

Related MCQs