Page 12 -
P. 12

table of contents


                                     textual data
                           2         Every string has its place



                                     Imagine trying to communicate without words.
                                     All programs process data, and one of the most important types of data is text. In this
                                     chapter, you’ll work through the basics of textual data. You’ll automatically search
                                     text and get back exactly what you’re looking for. Along the way, you’ll pick up key
                                     programming concepts such as methods and how you can use them to bend your
                                     data to your will. And finally, you’ll instantly power up your programs with the help of
                                     library code.




                                              Your new gig at Starbuzz Coffee                           38
                                               Here’s the current Starbuzz code                         39
                                               The cost is embedded in the HTML                         41
                                              A string is a series of characters                        41
                                               Find characters inside the text                          42
                                               But how do you get at more than one character?           43
                                               The String Exposed                                       48
                                               Beans’R’Us is rewarding loyal customers                  50
                                               Searching is complex                                     52
                                               Python data is smart                                     54
                                               Strings and numbers are different                        64
                                               The program has overloaded the Beans’R’Us Server         67
                                               Time... if only you had more of it                       68
                                              You’re already using library code                         69
                                               Order is restored                                        74
                                              Your Programming Toolbox                                  75
















                                                                                                         xi
   7   8   9   10   11   12   13   14   15   16   17