Page 179 -
P. 179

comprehending data



                        Test Drive





                       Load your code into IDLE and run it to confirm that it’s all OK for now:
                       Here’s your
                       program as
                       displayed in
                       IDLE.








              And here’s the output
              produced by running
              your code.

























           So far, so good. Coach Kelly’s data is now represented by four lists in Python’s
           memory. Other than the use of method chaining, there’s nothing much new
           here, because you’ve pretty much mastered reading data from files and using
           it to populate lists.
           There’s nothing to show the coach yet, so no point in disturbing him until his
           data is arranged in ascending order, which requires you to sort it.

           Let’s look at your sorting options in Python.


                                                                                      you are here 4    143
   174   175   176   177   178   179   180   181   182   183   184