|
|
|
|
|
by maxcoder4
798 days ago
|
|
>That's the complaint, that [[]]*4 is not shorthand for list comprehensions and that it's something entirely different. Well, of course. It's a shorthand for duplicating the list elements four times. In this case, the list contains a single reference to an empty list, do the result contains four references to an empty list. |
|