A method is a function that belongs to a value, called with a dot. Strings have around fifty of them, and a dozen cover most real work: changing case, trimming spaces, finding, replacing, splitting and joining. Because strings are immutable, every method returns a new string and leaves the original alone.
More lessons in Complete Python Programming