Page 47 -
P. 47

meet python


           Add more data to your list


           With your list of movie names created, now you need to add more of the
           movie buff’s complex data to it. You have a choice here:



                 I think I’ll use the
                 appropriate list                                             With something this small,
                 methods to add the extra                                     I’m gonna simply re-create
                 data I need.                                                 my list from scratch.
























           Either strategy works. Which works best for you depends on what you are
           trying to do. Let’s recall what the movie buff’s data looks like:

                     A number
                     representing   The Holy Grail, 1975, T erry Jones & T erry Gilliam, 91 mins
                     the year is           Graham Chapman
                     next.                        Michael Palin, John Cleese, T erry Gilliam, Eric Idle & T erry Jones
                                    The Life of Brian, 1979, T erry Jones, 94 mins
                                           Graham Chapman
                                                  Michael Palin, John Cleese, T erry Gilliam, Eric Idle & T erry Jones
                                    The Meaning of Life, 1983, T erry Jones, 107 mins
                                           The six Monty Python cast members
                                                  Graham Chapman, Michael Palin, John Cleese, T erry Gilliam, Eric Idle & T erry Jones




           The next piece of data you need to add to your list is a number (which
           represents the year the movie was released), and it must be inserted after each
           movie name. Let’s do that and see what happens.

                                                                                       you are here 4    11
   42   43   44   45   46   47   48   49   50   51   52