this loop traverses the string and displays each letter on line by itself the loop condition is index len(fruit)so when index is equal to the length of the stringthe condition is falseand the body of the loop is not executed the last character accessed is the one with the index len(fruit)- which is the last character in the string exercise write while loop that starts at the last character in the string and works its way backwards to the first character in the stringprinting each letter on separate lineexcept backwards another way to write traversal is with for loopfor char in fruitprint(chareach time through the loopthe next character in the string is assigned to the variable char the loop continues until no characters are left string slices segment of string is called slice selecting slice is similar to selecting characters 'monty pythonprint( [ : ]monty print( [ : ]python the operator returns the part of the string from the " -thcharacter to the " -thcharacterincluding the first but excluding the last if you omit the first index (before the colon)the slice starts at the beginning of the string if you omit the second indexthe slice goes to the end of the stringfruit 'bananafruit[: 'banfruit[ :'anaif the first index is greater than or equal to the second the result is an empty stringrepresented by two quotation marksfruit 'bananafruit[ : 'an empty string contains no characters and has length but other than thatit is the same as any other string exercise given that fruit is stringwhat does fruit[:mean