will perform the print function five times the range function will return range object representing the sequence and each value will be assigned to the variable item this value is then squared and printed the other very useful version of this iteration structure is used to process each character of string the following code fragment iterates over list of strings and for each string processes each character by appending it to list the result is list of all the letters in all of the words word_list ['cat','dog','rabbit'letter_list for a_word in word_listfor a_letter in a_wordletter_list append(a_letterprint(letter_listselection statements allow programmers to ask questions and thenbased on the resultperform different actions most programming languages provide two versions of this useful constructthe ifelse and the if simple example of binary selection uses the ifelse statement if print("sorryvalue is negative"elseprint(math sqrt( )in this examplethe object referred to by is checked to see if it is less than zero if it isa message is printed stating that it is negative if it is notthe statement performs the else clause and computes the square root selection constructsas with any control constructcan be nested so that the result of one question helps decide whether to ask the next for exampleassume that score is variable holding reference to score for computer science test if score > print(' 'elseif score > print(' 'elseif score > print(' 'elseif score > print(' 'else introduction