My problem is that I need to make list of lists of specific size, like this:
list = [[]] * 10
but whe I try to append something into list inside list and print it out, this happen:
[['something'], ['something'], ['something'], ['something'], ['something'], ['something'], ['something'], ['something'], ['something'], ['something']]
And I only changed one item in list. My friend told me that there is some problem with memory adresses, but I don't know how to code it. Anyways, here is the code:
list = [[]] * 10
temp = list[3]
temp.append("something")
list[3] = temp
print(list)