Jul-30-2019, 04:22 PM
(Jul-30-2019, 03:17 PM)ichabod801 Wrote: Okay, SATList has three sub-items (state, verbal, math) in each item, and you are trying to unpack two. I'm not sure why you are comparing math[2] in the loop. That's the same value (the third math score in the file) for every time through the loop. I think you want:
for row in SATList: if row[2] > '500':Although, I would again note that comparing numbers as strings does not work well. I would convert all of the scores with int() or float() as appropriate.
Thank you, I guess I'm not following. I thought I was unpacking all three suit items. Do you have a more accurate way to write the program.
I really appreciate the time and the lesson