''' e-mail 1: e-mail 2: Purpose: experience the thrill of string manipulation ''' # get input s = input( 'Enter a line of text: ' ) ############################################################################ # determine n -- the length of s n = len( s ) # display result print( ) print( 'The input has length:', n ) ############################################################################ #determine starting index of middle third left = n // 3 #determine starting index of final third right = 2 * n // 3 #get middle string middle = s[ left : right ] print ( s )