So, basically I have a Queue (List of List of strings). Now, suppose I want to append 'okay' to the list at index 1, why is it getting appended for all the lists inside Queue? How do I append a value to a specific list only inside Queue?
Queue = []
temp = []
Queue.append(temp) # 12 - 8
Queue.append(temp)
Queue.append(temp)
Queue[1].append('okay')
print(Queue)
[['okay'], ['okay'], ['okay']]