Determine whether there’s more than one word in a string

python, split, string

Solution

Try this:

line = 'how are you?'

if len(line.split()) > 1: # has more than 1 word

Problem

For example: ``` line = 'how are you?' if line == [has more than one word]: line.split() ``` Is this possible?

Original source