String methods
Python String methods used in the scope of this course.
Returns the number of times a specified value appears in the string.
Takes all items in an iterable (array, list, etc.) of strings and joins them into one string, separated by a string its called on.
Return a copy of the string with all the cased characters converted to lowercase.
Return a copy of the string with all occurrences of substring old replaced by new.
Return a list of the words in the string, using the parameter as the delimiter string.
Return a copy of the string with the leading and trailing characters removed.
Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase.
Return a copy of the string with all the cased characters converted to uppercase.
Problems or suggestions about this page? Fill out our feedback form.