[Tutor] create numpy array from list of strings
Code in this form can become the list comprehension.tempDATA=[ [float(j) for j in i.split()] for i in data[stind:-1] ]. You can also have multiple loops in a single list comp; if you wanted a single list of floats, instead of a list of lists, you could write.