''' Purpose: expand input processing capabilities by splitting an input string into its component words ''' # get input reply = input( 'What are your three favorite words: ' ) print() # determine individual words w1, w2, and w3 w1, w2, w3 = reply.split() # <- this will split the reply string on the spaces (by default), returning a list of 3 words # # display results print( w1 ) print( w2 ) print( w3 )