• + 0 comments

    if you append a digit to one sublist then the number appends to all the sublists...so its not a good idea d = [[]]*n d[0].append(1)

    [[1],[1],...]