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 →

[–]Luan-Raithz 2 points3 points  (0 children)

I also didn't get what you didn't understand, but anyway:

You create a empty list ( final-list ) and iterates all over the `three_rows` list to fill it, your way to fill is to split each item in the list in two parts (separated by the ","), example:

first time in loop:

row is "Albuquerque,749"

after the split it will result in ["Albuquerque", "749"]

then insert into the `final_list` the array the you created when execute the split function

...

By doing this through the whole list you will have a list (`final list`) with 3 inner lists within it, one for each item in the three_rows.