Page 100 -
P. 100

textual data



                     Test Drive





           This should be a pretty quick fix. If you use the float() function to
           convert the price substring, you should then be able to compare the
           price to 4.74:













                                                                                              The program runs
                                                                                              with no problems
                                                                                              this time.













     The updated code.







           That’s much better. Your program now waits patiently until the
           price falls to the right level and only then does it tell the CEO that
           the time is right to buy a fresh batch of coffee beans.



                           This is great! Now I can get on with
                           the rest of my day and I only hear
                           when the price of beans drops to the
                           right level. This‛ll save millions! I‛ll tell
                           every outlet to use it worldwide.


                                                                                        you are here 4    65
   95   96   97   98   99   100   101   102   103   104   105