Oh man, I'm sure you guys are going to have a good time making fun of my newbie self, so enjoy!
I have output that looks like this:
I take this output and I feed it to a function that I wrote:
def parseline(input,start,stop):
for line in input.readlines():
if ":" in line:
line = line[start:stop]
print line
It then spits out exactly what I want:
6.87
6.86
etc...all on separate lines, I only wanted the ones, tenths, and hundredths btw...
When it's done, I'm stuck with the list. The list is comprised of a bunch of numbers on differernt lines.
What I really need to do though is take this list and put it into an array and sort them from the "lowest" to the "highest" number.
When I try and put this list of strings into an array by using split, it doesn't work. I'm just stumped. Anyone know how to take the readlines() blob and split it up into an array?
-Link