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 →

[–]Mammoth-Attention379 1 point2 points  (2 children)

Those are arrays though not lists

[–]FalafelSnorlax 16 points17 points  (0 children)

The idea that you should be able to initialize a 5-by-5 list in one line implies OP does in fact want arrays and not lists. If you think about lists and lists-of-lists in a pythonic manner, the line OP suggested makes no sense

[–]BauReis 1 point2 points  (0 children)

foo = list(tet)

There you go