I have a list of lists in Python, such as
colours = [['1', '2', '3'], ['1', '2', '3'], ['1', '2', '3']]
All three lists are the same at the beginning. I want to remove the first 1 from the first list so that I have
colours = [['2', '3'], ['1', '2', '3'], ['1', '2', '3']]
but whatever I tried will remove the 1 from every list.
I tried doing colours[0].remove('1')
but then the result is
colour = [['2', '3'], ['2', '3'], ['2', '3']]
How can I do it?
I have defined colours as:
list = ['1', '2', '3']
for i in range(3):
colours.append(list)