I have a file that looks like this:

110603/1200

stuff
stuff
stuff

min and max 0.00 1.00

110604/1200

stuff
stuff
stuff

min and max 0.00 1.50

etc...

I want to pull out the date and pair it with the associated min and max value associated with it. I know how to go through the file line by line with 'for line in file', but I don't know how to pair the dates with the max and min values.

v = "min and max 0.00 1.50"
print v.rsplit(' ',2)[-2:]
"" Output: ['0.00', '1.50'] """
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.