Question: 
Write a function to shortlist words that are longer than n from a given list of words.


Model's Code:
def long_words(n, sentence):
    return [word for word in sentence.split() if len(word) > n]



Sample Correct Code:
def long_words(n, str):
    word_len = []
    txt = str.split(" ")
    for x in txt:
        if len(x) > n:
            word_len.append(x)
    return word_len	


Asserts:
assert long_words(3,"python is a programming language")==['python','programming','language']
assert long_words(2,"writing a program")==['writing','program']
assert long_words(5,"sorting list")==['sorting']


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 128 of 974: 95/128 (74.21875%): success