Page 158 -
P. 158
data in files and arrays
Here is the current version of the program:
highest_score = 0
result_f = open("results.txt")
for line in result_f:
if float(line) > highest_score:
highest_score = float(line)
result_f.close()
print("The highest score was:")
print(highest_score)
Write the extra code required to take advantage of the split() method and multiple
assignment in order to create variables called name and score. Then use them to complete
the program to find the highest score.
bass
you are here 4 123