def contains_whitespace(text):
 return any((x.isspace() for x in text))

def contains_whitespace ( text ) : return any ( ( x . isspace ( ) for x in text ) )
returns true if there are any whitespace characters in the string .