You are viewing a single comment's thread. Return to all 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)
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all 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],...]