I'm reading from a file and basically I need to make the integers into a series of lists, but they're already broken up in the data file. So, there's forty lines with five numbers each in them in the format 1, 2, 3, 4, 5
I can't figure out how to translate this into a list that keeps the numbers as integers because I keep getting an error saying that the comma isn't an integer.
I tried splicing the data, thinking that would help, but I can't x.split() on dict or list or anything other than string but I don't know how to convert the file into a string!
I would appreciate any help!