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) (Solved)

1. [[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]

2. [[2, 3, 9], [2, 3, 9], [2, 3, 9]]

3. [[[2, 3, 9]], [[2, 3, 9]]]

4. None of these

  • a. [[[2, 3, 9]], [[2, 3, 9]], [[2, 3, 9]]]
Subscribe Now

Get All Updates & News