Page 80 -
P. 80

textual data











                                              You need to update the program to extract the price starting at
                                              the 235th character of the string. The price is four characters long.
                       Remember: the 235th    Store the price substring in a variable called price.  Write the
                       character in the string has
                                              new version of the program here:
                       index value 234.






                      import urllib.request

                        page = urllib.request.urlopen("http://www.beans-r-us.biz/prices.html")
                      text = page.read().decode("utf8")


                       print(text)
                                                                                    Here’s the current
                                                                                    version of the code.
                           Write the new
                           code here.






























                                                                                        you are here 4    45
   75   76   77   78   79   80   81   82   83   84   85