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
示例#3
0
def test_words(input, expected):
    assert s.words(input) == expected
示例#4
0
def words(word):
    return s.words(word)