I want to make a list like [ ['a'] , [] , [] , [] ]. I tried this code:
n = input()array = [[]]*narray[0].append('a')print arrayBut instead I get a wrong result:
[ ['a'], ['a'], ['a'], ['a'] ] # <- wrong listWhy does this happen, and how can I fix it?