''' Purpose: demonstrate the printing of a list of words, one by one ''' # get list of three words reply = input( "Enter three words: " ) words = reply.split() ### print the words print ( words[0] ) print ( words[1] ) print ( words[2] ) # get list of words reply = input( "Enter a list of words: " ) words = reply.split() ### print the words for w in words: # keyword for, variable name for current item, keyword in, sequence print ( 'word = ', w ) # sequences # list # string # range (sequence of integers)