>A Byte of Python

More about Strings

We have already discussed strings in detail earlier. What more can there be to add? Well, did you know that strings are also objects and have methods which do everything from checking substrings to stripping spaces!

The strings that you use in your program are all objects (instances) of the class str. Some useful methods of this class are demonstrated in the following example. For a complete list of such methods, see help(str).