String Functions in Python
String Functions in Python #String Functions in Python capitalize() #Converts the first character to upper case casefold() #Converts string into lower case center() #Returns a centered string count() #Returns the number of times a specified value occurs in a string encode() #Returns an encoded version of the string endswith() #Returns true if the string ends with the specified value expandtabs() #Sets the tab size of the string find() #Searches the string for a specified value and returns the position of where it was found format () #Formats specified values in a string format_map() #Formats specified values in a string index() #Searches the string for a specified value and returns the position of where it was found isalnum() #Returns True if all characters in the string are alphanumeric isalpha() #Returns True if all characters in the string are in the alphabet isdecimal() #Returns True if all characters in the string are decimals isdigit() #Returns True if...