# print_return.py # Walker M. White (wmw2) # August 30, 2016 """A module to extract the middle third of a string""" def middle(text): """Returns: middle 3rd of text Param text: a string""" # Get length of text size = len(text) # Start of middle third start = size/3 # End of middle third end = 2*size/3 # Get the text result = text[start:end] # Return the result return result