reply = input( 'enter some text: ' ) words = reply.split() output = '' for word in words: output = output + word + '-' print( output )