I want to change only one element in the 2d list. I can change an element in list1 using list1[0][2] = "x" but when i do the same for list2 more than one element is changed.
list1 = []for i in range(0,5): list1.append(['O']*5)list2 = [['o','o','o','o','o']]*5