one of the simplest tasks you can do with strings is change the case of the words in string look at the following codeand try to determine what' happeningname py name "ada lovelaceprint(name title()save this file as name pyand then run it you should see this outputada lovelace in this examplethe lowercase string "ada lovelaceis stored in the variable name the method title(appears after the variable in the print(statement method is an action that python can perform on piece of data the dot after name in name title(tells python to make the title(method act on the variable name every method is followed by set of parenthesesbecause methods often need additional information to do their work that information is provided inside the parentheses the title(function doesn' need any additional informationso its parentheses are empty title(displays each word in titlecasewhere each word begins with capital letter this is useful because you'll often want to think of name as piece of information for exampleyou might want your program to recognize the input values adaadaand ada as the same nameand display all of them as ada several other useful methods are available for dealing with case as well for exampleyou can change string to all uppercase or all lowercase letters like thisname "ada lovelaceprint(name upper()print(name lower()this will display the followingada lovelace ada lovelace the lower(method is particularly useful for storing data many times you won' want to trust the capitalization that your users provideso you'll convert strings to lowercase before storing them then when you want to display the informationyou'll use the case that makes the most sense for each string