LogiQuest
Back to Lists
18

What is the output of the following code?

a = [[0] * 2] * 2
a[0][0] = 5
print(a)
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.