""" Purpose: demonstrate string method strip() """ # Get text reply = input( "Enter text: " ) # Get a cleaned version of the text s = reply.strip() # Show differences in the strings print() print( "string of interest:", reply, ":" ) print( " stripped version:", s, ":" )