A

Admin • 831.35K Points
Coach

Q. What is the output of the following program?

Code:
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
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.