def reader():
myfile = open("scores.txt","r")
pre = myfile.readlines()
for line in pre :
x = line.split(",")
a = x[0]
b = x[1]
c = len(b)-1c
b = b[0:c]
highest[a] = b
I have succeeded in writing the scores to a file and I intend to read the file into a dic, but it's not working. I'm getting:
error: IndexError: list index out of range
How do I fix it? anymore