strings exercise there is string method called count that is similar to the function in the previous exercise read the documentation of this method atwrite an invocation that counts the number of times the letter occurs in "banana parsing strings oftenwe want to look into string and find substring for example if we were presented series of lines formatted as followsfrom stephen marquarduct ac za sat jan : : and we wanted to pull out only the second half of the address ( uct ac zafrom each linewe can do this by using the find method and string slicing firstwe will find the position of the at-sign in the string then we will find the position of the first space after the at-sign and then we will use string slicing to extract the portion of the string which we are looking for data 'from stephen marquard@uct ac za sat jan atpos data find('@'print(atpos sppos data find(',atposprint(sppos host data[atpos+ :spposprint(hostuct ac za : : we use version of the find method which allows us to specify position in the string where we want find to start looking when we slicewe extract the characters from "one beyond the at-sign through up to but not including the space characterthe documentation for the find method is available at format operator the format operatorallows us to construct stringsreplacing parts of the strings with the data stored in variables when applied to integersis the modulus operator but when the first operand is stringis the format operator the first operand is the format stringwhich contains one or more format sequences that specify how the second operand is formatted the result is string