Jul-30-2019, 03:17 PM
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures