reply = input( 'Enter one or two words: ' ) list = reply.split() n = len( list ) # assume they followed directions response = 'You followed directions' if ( ( n != 0 ) and ( n != 1 ) ) : # what does it take to be wrong? n is neither 0 nor 1 # they did not, so response needs updating response = 'You did not follow directions' print( response)