def words(string, count=0): temp = s.words(string) if count == 0: return bool(temp) b = [(count == len(temp))] for item in temp: b.append(word(item)) return all(b)
def test_words(input, expected): assert s.words(input) == expected
def words(word): return s.words(word)