format sequence sequence of characters in format stringlike %dthat specifies how value should be formatted format string stringused with the format operatorthat contains format sequences flag boolean variable used to indicate whether condition is true or false invocation statement that calls method immutable the property of sequence whose items cannot be assigned index an integer value used to select an item in sequencesuch as character in string item one of the values in sequence method function that is associated with an object and called using dot notation object something variable can refer to for nowyou can use "objectand "valueinterchangeably search pattern of traversal that stops when it finds what it is looking for sequence an ordered setthat isa set of values where each value is identified by an integer index slice part of string specified by range of indices traverse to iterate through the items in sequenceperforming similar operation on each exercises exercise take the following python code that stores stringstr ' -dspam-confidence: use find and string slicing to extract the portion of the string after the colon character and then use the float function to convert the extracted string into floating point number exercise read the documentation of the string methods at you might want to experiment with some of them to make sure you understand how they work strip and replace are particularly useful the documentation uses syntax that might be confusing for examplein find(sub[start[end]])the brackets indicate optional arguments so sub is requiredbut start is optionaland if you include startthen end is optional