Page 75 -
P. 75

test drive



                     Test Drive





           Type the code into IDLE, save the program, and run it.










      Here’s the program
      code as entered
       into IDLE.
















              When executed,
              the program
              produces this.



                                                                            This looks like a chunk of “raw"
           The code you’ve been left goes to the prices page on the
           Beans’R’Us website to get the current price of coffee             HTML text, which is the format
           beans. But instead of giving just the cost, it gives you all      used to create web pages.
           of the HTML text used to create the web page itself.



                                                        Hey, that‛s not right! I only
                                                        need to see the current
                                                        price of coffee beans, not all
                                                        that other stuff. Think you
                                                        can give me just the cost?



           40    Chapter 2
   70   71   72   73   74   75   76   77   78   79   80