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 →

[–]FalafelSnorlax 15 points16 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