Python Strings
Below is a table of common string methods: Method Name Description Syntax Example str.upper() Converts all characters in the string to uppercase str.upper() “car”.upper() returns “CAR” str.lower() Converts all characters in the string to lowercase str.lower() “CAR”.lower() returns “car” str.capitalize() Converts the first character of the string to uppercase and all other characters to lowercase …