Append to list of lists
- by Joel
Hello,
I am trying to build a list of lists using the following code:
list=3*[[]]
Now I am trying to append a string to the list in position 0:
list[0].append("hello")
However, instead of receiving the list
[ ["hello"] , [], [] ]
I am receiving the list:
[ ["hello"] ,["hello"] , ["hello"] ]
Am I missing something?
Thanks,
Joel