dictionaries and strings insteadwill leave unchanged and return list of the substrings similarlya call such as replace( , does not change but it will return new string that we can assign to either or some other variable nameas we did in the example above the call replace( , does nothing useful on its ownunless it is combined into an assignment such as replace( , or replace( , other convenient string methods in python it is often convenient to strip leading or trailing whitespace from stringand there are methods strip()lstrip(and rstrip(to do just thiss text with leading/trailing space strip('text with leading/trailing spaces lstrip(left strip 'text with leading/trailing space \ns rstrip(right strip text with leading/trailing space\nwe can also check whether string contains only numbers (digits)only spaceor if string starts or ends with given substring' isdigit(true isdigit(false ' isdigit(false isspace(true \nisspace(true \ isspace(true 'isspace(false blanks newline tab empty string startswith('berlin'true endswith('am'false finallywe might be interested in converting between lowercase and uppercase characterss lower('berlin at pms upper('berlin at pmthe examples shown so far are just few of the useful string operations defined in python many more existbut all the text processing tasks considered