Python – String expandtabs() Method
The Python string expandtabs() method sets the tab size to the specified number of whitespaces.
The Python string expandtabs() method sets the tab size to the specified number of whitespaces.
The Python string find() method finds the first occurrence of the specified value, and returns -1 if the value is not found.
The Python string format() method formats the specified value(s) and insert them inside the string’s placeholder and returns the formatted string.
The Python string index() method finds the first occurrence of the specified value, and raises an exception if the value is not found.
The Python string isalnum() method returns True if all the characters are alphanumeric, meaning alphabet letter (a-z) and numbers (0-9).
The Python string isalpha() method returns True if all the characters are alphabet letters (a-z).
The Python string isascii() method returns True if all the characters are ascii characters (a-z).
The Python string isdecimal() method returns True if all the characters are decimals (0-9).
The Python string isdigit() method returns True if all the characters are digits, or False if they are not.
The Python string isidentifier() method returns True if the string is a valid identifier, or False if not.
The Python string islower() method returns True if all the characters are in lower case, or False if not.
The Python string isnumeric() method returns True if all the characters are numeric (0-9), or False if any are not.
The Python string isprintable() method returns True if all the characters are printable, or False if they are not.
The Python string isspace() method returns True if all the characters in a string are whitespaces, or False if they are 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).