<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_words(lines):
 """ Extract from the given iterable of lines the list of words. :param lines: an iterable of lines; :return: a generator of words of lines. """

    for line in lines:
        for word in re.findall(r"\w+", line):
            yield word