Ask or search…
About Python Classroom
Python Cloud Options
Python Curriculum Map
Strings have methods that allow you to perform operations on them.
Returns a copy of the string with all alphabetic letters converted to lowercase. Any character that is already lowercase, or is not an alphabetic letter, is unchanged.
Returns a copy of the string with all alphabetic letters converted to uppercase. Any character that is already uppercase, or is not an alphabetic letter, is unchanged.
Returns a copy of the string with all leading and trailing whitespace characters removed.
Returns a titlecased version of the string with the remaining characters in lowercase.