Python – String rstrip() Method
The Python string rstrip() method removes any trailing characters (space is the default leading trailing to remove).
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.
The Python string title() method returns a string where the first character in every word is upper case (as in a header or a title).