''' Purpose: solve rss.py test problem ''' # get input reply = input( "Enter text: " ) # get and print version of input with hyphens instead of spaces version1 = reply.replace( ' ', '-' ) # replace all spaces in the string reply with hyphens print( version1 ) # get and print version of input without leading or trailing whitespce version2 = reply.strip() print( version2 ) # split input into two words w1, w2 = reply.split() # print first input word in upper case w1 = w1.upper() print( w1 ) # print second input word in lower case w2 = w2.lower() print( w2 )