String Methods
capitalize()
Converts the first character to upper case
String Methods
casefold()
Converts the string to lower case
String Methods
center()
Returns a centered string
String Methods
count()
Returns the number of times a specified value occurs in a string
String Methods
encode
Returns an encoded version of the string
String Methods
endswith()
Returns true if the string ends with the specified value
String Methods
expandtabs()
Sets the tab size of the string
String Methods
find()
Searches the string for a specified value and returns the position of where it was found
String Methods
format()
Formats specified values in a string
String Methods
format_map()
Formats specified values in a string
String Methods
index()
Searches the string for a specified value and returns the position of where it was found
String Methods
isalnum()
Returns True if all characters in the string are alphanumeric
String Methods
isalpha()
Returns True if all characters in the string are in the alphabet
String Methods
isascii()
Returns True if all characters in the string are ascii characters
String Methods
isdecimal()
Returns True if all characters in the string are decimals
String Methods
isdigit()
Returns True if all characters in the string are decimals
String Methods
isidentifier()
Returns True if the string is an identifier
String Methods
islower()
Returns True if all characters in the string are lower case
String Methods
isnumeric()
Returns True if all characters in the string are numeric
String Methods
isprintable()
Returns True if all characters in the string are printable
String Methods
isspace()
Returns True if all characters in the string are whitespaces
String Methods
istitle()
Returns True if the string follows the rules of a title
String Methods
isupper()
Returns True if all characters in the string are upper case