<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_active_lines(lines, comment_char="#"):
 """ Returns lines, or parts of lines, from content that are not commented out or completely empty. The resulting lines are all individually stripped. This is useful for parsing many config files such as ifcfg. Parameters: lines (list):
 List of strings to parse. comment_char (str):
 String indicating that all chars following are part of a comment and will be removed from the output. Returns: list: List of valid lines remaining in the input. Examples: ['First line', 'Inline comment', 'Whitespace', 'Last line'] """

    return list(filter(None, (line.split(comment_char, 1)[0].strip() for line in lines)))