for all of these methodsnote that the input string remains unmodifieda brand new str instance is returned instead if we need to manipulate the resultant stringwe should assign it to new variableas in new_value value capitalize(oftenonce we've performed the transformationwe don' need the old value anymoreso common idiom is to assign it to the same variableas in value value title(finallya couple of string methods return or operate on lists the split method accepts substring and splits the string into list of strings wherever that substring occurs you can pass number as second parameter to limit the number of resultant strings the rsplit behaves identically to split if you don' limit the number of stringsbut if you do supply limitit starts splitting from the end of the string the partition and rpartition methods split the string at only the first or last occurrence of the substringand return tuple of three valuescharacters before the substringthe substring itselfand the characters after the substring as the inverse of splitthe join method accepts list of stringsand returns all of those strings combined together by placing the original string between them the replace method accepts two argumentsand returns string where each instance of the first argument has been replaced with the second here are some of these methods in actions "hello worldhow are yous split(' ['hello''world,''how''are''you''#join( 'hello#world,#how#are#yous replace(''**''hello**world,**how**are**yous partition('('hello'''worldhow are you'there you have ita whirlwind tour of the most common methods on the str classnowlet' look at python ' method for composing strings and variables to create new strings string formatting python has powerful string formatting and templating mechanism that allows us to construct strings comprised of hardcoded text and interspersed variables we've used it in many previous examplesbut it is much more versatile than the simple formatting specifiers we've used