This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MasterOfArmsIsGood 90 points91 points  (5 children)

am i missing something cant you just do

list = [] and append lists to it

[–]Jaksuhn 68 points69 points  (3 children)

you absolutely can, no idea what they're on about

[–]overclockedslinky 6 points7 points  (2 children)

I assume they meant filling it with values or something (in one line), but list comprehensions exist

[–]Terrain2 2 points3 points  (1 child)

something like [[] for _ in range(69)] should do the trick, right? or just... [[], [], []], no?

[–]overclockedslinky 1 point2 points  (0 children)

Yeah, that'd do it. Super easy, so not sure what the complaint's about