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
   153   154   155   156   157   158   159   160   161   162   163