Python – String istitle() Method
The Python string istitle() method returns True if all words start with an upper case letter, AND the rest of the word are lower case, or False if not.
The Python string istitle() method returns True if all words start with an upper case letter, AND the rest of the word are lower case, or False if not.
The Python string isupper() method returns True if all the characters are in upper case, or False if not.
The Python string join() method takes all items in an iterable and joins them into one string.
The Python string ljust() method will left align the string using a specified character (a space is default) as the fill character.
The Python string lower() method returns a string where all characters are lower case.
The Python string lstrip() method removes any leading characters (space is the default leading character to remove).
The Python string maketrans() method returns a mapping table that can be used with the translate() method to replace specified characters.
The Python string partition() method searches for a specified string, and splits the string into a tuple containing three elements.
The Python string replace() method replaces a specified phrase with another specified phrase.
The Python string rfind() method finds the last occurrence of the specified value, or returns -1 if the value is not found.
The Python string rindex() method finds the last occurrence of the specified value, or raises an exception if the value is not found.
The Python string rjust() method will right align the string using a specified character (a space is default) as the fill character.
The Python string rpartition() method searches for the last occurrence of a specified string, and splits the string into a tuple containing three elements.
The Python string rsplit() method splits a string into a list, starting from the right.
The Python string rstrip() method removes any trailing characters (space is the default leading trailing to remove).
The Python string splitlines() method splits a string into a list at line breaks.
The Python string startswith() method returns True if the string starts with the specified value, or False if it does not.
The Python string strip() method removes any leading, and trailing whitespaces.
The Python string swapcase() method returns a string where all the upper case letters are lower case and vice versa.