<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def comment_lines(lines, prefix):
 """Return commented lines"""

    if not prefix:
        return lines
    return [prefix + ' ' + line if line else prefix for line in lines]