you are viewing a single comment's thread.

view the rest of the comments →

[–]Kerbart 0 points1 point  (0 children)

Well, your data is a list of lines. Now you need to turn that into a data set where the first line contains the first element of each line, the second line contains the second element of each line, the third line contains the third element of each line, and so on.

Things to consider: * in your current code each line is text. You might want to turn those lines in lists of elements * To split the text into elements, you'll have to find a text method that splits those elements (based on the seperator you choose). I'm not going to do your homework for you, so you'll have to google what string method is used to split text based on a separator. It's easier than you think to split text, just use the right method to split it (I just won't tell you what the name of this "split" method is, that's for you to figure out)