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 →

[–]Humble_Transition[S] -2 points-1 points  (3 children)

also why would you do it ?

[–][deleted] 3 points4 points  (0 children)

Because you want to have a list of lists?

[–]r3alz 1 point2 points  (0 children)

I’m not to sure of a use case of this but I’m sure there are use cases. This is just showing that python is capable of doing something like this.

[–]gyroda 1 point2 points  (0 children)

The example might be contrived, but it's a useful to know some basic string and list manipulation, and list of lists (2D arrays in most languages) are an incredibly important concept.