KISS stands for Keep It Simple Stupid.
It is a design principle for keeping things simple rather than complex.

You are the boss of Joe.

Joe is submitting words to you to publish to a blog. He likes to complicate things.

Define a function that determines if Joe's work is simple or complex.

Input will be non emtpy strings with no punctuation.

It is simple if:
``` the length of each word does not exceed the amount of words in the string ```
(See example test cases)

Otherwise it is complex.

If complex:
```python
return "Keep It Simple Stupid"
```
or if it was kept simple:
```python
return "Good work Joe!"
```

Note: Random test are random and nonsensical. Here is a silly example of a random test:
```python
"jump always mostly is touchy dancing choice is pineapples mostly"
```

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def is_kiss(words):
	

Solutions:
def is_kiss(words):
	wordsL = words.split(' ')
	l = len(wordsL)
	for word in wordsL:
		if len(word) > l:
			return 'Keep It Simple Stupid'
	return 'Good work Joe!'


def is_kiss(words):
	words = words.split(' ')
	return 'Keep It Simple Stupid' if any((len(word) > len(words) for word in words)) else 'Good work Joe!'


def is_kiss(words):
	wo = words.split(' ')
	c = len(wo)
	for w in wo:
		if len(w) > c:
			return 'Keep It Simple Stupid'
	return 'Good work Joe!'


def is_kiss(words):
	return 'Keep It Simple Stupid' if max((len(i) for i in words.split())) > len(words.split()) else 'Good work Joe!'


def is_kiss(stg):
	words = stg.split()
	l = len(words)
	return 'Good work Joe!' if all((len(word) <= l for word in words)) else 'Keep It Simple Stupid'


def is_kiss(s):
	s = s.split()
	n = len(s)
	return 'Good work Joe!' if all((len(x) <= n for x in s)) else 'Keep It Simple Stupid'


def is_kiss(s):
	words = s.split()
	total_words = len(words)
	if all((len(a) <= total_words for a in words)):
		return 'Good work Joe!'
	return 'Keep It Simple Stupid'