Python String Methods
String methods for text manipulation — split, join, replace, format, and more. This category documents 39 Python string methods entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: str.upper(), str.lower(), str.capitalize(), str.title(), str.strip(), str.lstrip(), str.rstrip(), str.split(), str.rsplit(), str.splitlines(), str.join(), str.replace(), str.find(), str.rfind(), str.index(), str.rindex(), str.count(), str.startswith(), str.endswith(), str.isalpha(), str.isdigit(), str.isalnum(), str.isspace(), str.islower(), str.isupper(), str.istitle(), str.ljust(), str.rjust(), str.center(), str.zfill(), and more. str.upper() returns a copy of the string with all characters converted to uppercase. str.lower() returns a copy of the string with all characters converted to lowercase. str.capitalize() returns a copy with the first character capitalized and the rest lowercased. str.title() returns a titlecased version where each word starts with uppercase.