''' Purpose: print out the input one word per line with each word capitalized ''' # convert input into a list of words reply = input('Type a sentence: ') words = reply.split() print( words ) print( 'reply =', reply ) print( 'words =', words ) print() #r_cap = reply.capitalize() #print(r_cap) #r_cap = words.capitalize() #print(r_cap) for placeholder in words: cap = placeholder.capitalize() print( cap, 'Jessica') # Python needs to know what is part of the loop print( 'beth' ) print('hteb')