I can't find out why, but Phyton is only finding the index from my array... Here is my code:
result_f = open("results.txt") for line in result_f: scores =  (name, score) = line.split() scores.append(score) result_f.close print(scores) print(scores) print(scores)
But Python keeps returning:
Traceback (most recent call last):
File "/Users/Bruno/Documents/Surf.py", line 12, in <module>
IndexError: list index out of range
Tried the code from the labs file, but I'm getting the same error. What's happening?