human
Write a function to find words that are longer than n characters from a given list of words. Here is a solution in Python:
Write me a Python code to find words that are longer than n characters from a given list of words?
assistant
#Here is Python code to find words that are longer than n characters from a given list of words.
 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