I make a 2D list:
list1 = []
liste = [0, 0, 0, 0, 0]
for i in range(93):
list1.append(liste)
And then try to update the elements in one of them by:
stemmer_tall = [123, 3321, 3442, 23, 1]
for i in range(5):
list1[0][i] += stemmer_tall[i]
When I do it, it updates not just the first list in my list, but all of them. What is wrong here? I cant figure it out.
EDIT: I want a list with 92 lists inside it, with just have zeroes. But the first list should be [123, 3321, 3442, 23, 1].